I have around 3000 deployments listed in my project and I would like to delete a preview deployment built from a branch. My preview deployments do not build automatically and I built this deployment manually back in April. Unfortunately the preview URL is being accessed and it contains bad info so I’d like to remove the deployment entirely. Obviously using the UI to scroll back through all these deployments is not really an option, therefore I’m attempting to use the API to do this, but not knowing the deployment ID is proving a stumbling block.
Using Get deployments limited to “previews” with "env=preview"
seems to only spit out the most recent 25 deployments. Searching these results for the branch name that I built the deployment from gives no results. Is the 25 a hard limit for the number of output items?
Any other ideas?