Delete multiple deployments in a single go

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.

Hi @Pradip_Patil,

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().

Hope that helps.

Best regards,
Yana

Thanks for the response… :slight_smile: