We want to delete multiple deployments(100+) happened on environment. What is the best way to do this automatically?
We have checked REST API support for deployments but we need to write procedure to get all deployment ids and then trigger REST API to delete them one by one.
We don’t offer a feature to delete a bunch of deployments at once.
I would go with either the option that you described, collect the ids and run a script to run delete them via REST requests.
An alternative is to do this via Java API and the repositoryService#deleteDeployment().