# Delete Resources on Elastic Cloud using REST API

**URL:** <https://discuss.elastic.co/t/delete-resources-on-elastic-cloud-using-rest-api/319221>\
**Category:** Elasticsearch\
**Created:** [November 17, 2022, 4:29pm UTC](https://discuss.elastic.co/t/delete-resources-on-elastic-cloud-using-rest-api/319221 "2022-11-17T16:29:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ofir\_Edi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ofir_edi/32/78181_2.png) [@Ofir\_Edi](https://discuss.elastic.co/u/Ofir_Edi)\
**Post date:** [November 17, 2022, 4:29pm UTC](https://discuss.elastic.co/t/delete-resources-on-elastic-cloud-using-rest-api/319221/1 "2022-11-17T16:29:44Z")

</div>

Hi,  
This is regarding Elastic cloud ([cloud.elastic.co/api/v1](http://cloud.elastic.co/api/v1)) - there is no matching tag.  
It seems like there is no option to delete resources/deployments.  
when using the shutdown API it says that resources are hidden but not deleted:  
[https://www.elastic.co/guide/en/cloud/current/Deployment\_-\_CRUD.html#shutdown-deployment](https://www.elastic.co/guide/en/cloud/current/Deployment_-_CRUD.html#shutdown-deployment)

[https://www.elastic.co/guide/en/cloud/current/Deployment\_-\_Commands.html#shutdown-deployment-stateless-resource](https://www.elastic.co/guide/en/cloud/current/Deployment_-_Commands.html#shutdown-deployment-stateless-resource)

I also tried to update deployment with removing resource (e.g enterprise search) from request with `prune_orphans: true` but despite getting 200 response it seems like resource still exists.

Thanks,  
Ofir

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [December 1, 2022, 4:30pm UTC](https://discuss.elastic.co/t/delete-resources-on-elastic-cloud-using-rest-api/319221/2 "2022-12-01T16:30:32Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
