# Output from Wildcard Delete

**URL:** <https://discuss.elastic.co/t/output-from-wildcard-delete/123016>\
**Category:** Elasticsearch\
**Created:** [March 8, 2018, 7:45am UTC](https://discuss.elastic.co/t/output-from-wildcard-delete/123016 "2018-03-08T07:45:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tim\_James](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tim_james/32/55697_2.png) [@Tim\_James](https://discuss.elastic.co/u/Tim_James)\
**Post date:** [March 8, 2018, 7:45am UTC](https://discuss.elastic.co/t/output-from-wildcard-delete/123016/1 "2018-03-08T07:45:03Z")

</div>

I have a script that runs every night to delete indexes more than a certain number of days old, based on the index name using a curl XDELETE.

I pipe the output to a logfile but all it says is Acknowledged True. Is there a way to get it to tell me the indexes that were deleted, I can't see how to get it to tell me this running the command in Kibana either. I'm suspecting it's not doing exactly what I want but it;s hard to debug.

Many Thanks

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [March 8, 2018, 11:08am UTC](https://discuss.elastic.co/t/output-from-wildcard-delete/123016/3 "2018-03-08T11:08:33Z")

</div>

I don't recall such an option.

What you could do is calling the \_cat/indices API before and after and compare the outputs?

---

<div class="post-metadata">

**Author:** ![Tim\_James](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tim_james/32/55697_2.png) [@Tim\_James](https://discuss.elastic.co/u/Tim_James)\
**Post date:** [March 8, 2018, 11:22am UTC](https://discuss.elastic.co/t/output-from-wildcard-delete/123016/4 "2018-03-08T11:22:28Z")

</div>

Hi,

Thanks. Yes, you're right, if there isn't a built in option, I could basically write one myself and do a compare of the outputs.

---

<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:** [April 5, 2018, 11:22am UTC](https://discuss.elastic.co/t/output-from-wildcard-delete/123016/5 "2018-04-05T11:22:35Z")

</div>

Closed on April 5, 2018, 11:22am UTC

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