The releases are not available via the UI and the API call /{baseSpaceId}/projects/{projectId}/releases does not return those releases.
I could try and delete the releases directly using DELETE
/{baseSpaceId}/releases/{id} but could you confirm that I can use the Id column in SELECT * FROM [dbo].[Release] where JSON = ‘’ for that API call please?
You are correct, the value from the Id column in the dbo.Release table is what should be used for any API calls referencing that release. Let us know if you hit any other issues trying to get those cleaned up.
The API returns 404 when I try and delete these releases. They are orphaned from both the API and UI.
Can you provide SQL to delete? Or advice otherwise…
Thanks
Simon
Sorry that attempting to remove these releases via the API is returning a 404. I’ve tested this on my end and am getting the same behavior, however I think the following should work to get these releases removed.
First, take a backup of your database prior to doing any of the following.
Next, update the JSON for the missing releases to have an empty JSON body by running the following SQL script:
UPDATE
dbo.Release
SET JSON = '{}'
WHERE JSON = ''
Once you’ve done that, you should be able to remove the releases via the API in a safer manner (i.e. a cascade delete rather than via the database) with the following script: