# Unable to delete datastream using delete datastream api

**URL:** <https://discuss.elastic.co/t/unable-to-delete-datastream-using-delete-datastream-api/320053>\
**Category:** Elasticsearch\
**Created:** [November 29, 2022, 2:08pm UTC](https://discuss.elastic.co/t/unable-to-delete-datastream-using-delete-datastream-api/320053 "2022-11-29T14:08:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![chinmoy\_padhi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chinmoy_padhi/32/68568_2.png) [@chinmoy\_padhi](https://discuss.elastic.co/u/chinmoy_padhi)\
**Post date:** [November 29, 2022, 2:08pm UTC](https://discuss.elastic.co/t/unable-to-delete-datastream-using-delete-datastream-api/320053/1 "2022-11-29T14:08:06Z")

</div>

Hi I have referred the following link [Delete data stream API | Elasticsearch Guide [7.17] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/7.17/indices-delete-data-stream.html) to delete Data stream. Unfortunately, not able to succeed

Whenever I tried from console  
`curl -X DELETE localhost:9200/_data_stream/.geoip_databases`  
It complains resource not found

due to those data streams my cluster health is red and I'm seeing unassigned shards as well.  
Moreover, both primary and replica shards of the data streams are not active. Also for that reason I'm not able to delete.

Note:- Since elasticsearch health is red , I'm not able to access Kibana to perform any operation on data streams

Can somebody suggest how can I delete the datastream from console or what way I can debug

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [November 29, 2022, 3:22pm UTC](https://discuss.elastic.co/t/unable-to-delete-datastream-using-delete-datastream-api/320053/2 "2022-11-29T15:22:54Z")

</div>

Do you know why your cluster is red? How did you determine those indices are your issues?

What version are you on?

What do these show

`curl localhost:9200/_cat/health`

`curl localhost:9200/_cat/indices?v`

BTW that is not a data stream so this should be the proper command.

`curl -X DELETE localhost:9200/.geoip_databases`

Are you out of disk space?

---

<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 27, 2022, 3:22pm UTC](https://discuss.elastic.co/t/unable-to-delete-datastream-using-delete-datastream-api/320053/3 "2022-12-27T15:22:55Z")

</div>

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