# Delete all alias documents

**URL:** <https://discuss.elastic.co/t/delete-all-alias-documents/23399>\
**Category:** Elasticsearch\
**Created:** [April 26, 2015, 9:03am UTC](https://discuss.elastic.co/t/delete-all-alias-documents/23399 "2015-04-26T09:03:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![redserpent7](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/redserpent7/32/467_2.png) [@redserpent7](https://discuss.elastic.co/u/redserpent7)\
**Post date:** [April 26, 2015, 9:03am UTC](https://discuss.elastic.co/t/delete-all-alias-documents/23399/1 "2015-04-26T09:03:08Z")

</div>

Hi,

I was wondering what is the quickest way to delete all documents associated  
with a specified alias or set of aliases.

Referring to the users data flow. Suppose some users unsubscribed and I  
want to remove their data to free up unwanted used space, what is the  
fastest way of doing this?

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/627e0dd4-996a-492c-a496-78f25db9a1d5%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/627e0dd4-996a-492c-a496-78f25db9a1d5%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![redserpent7](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/redserpent7/32/467_2.png) [@redserpent7](https://discuss.elastic.co/u/redserpent7)\
**Post date:** [April 27, 2015, 7:19am UTC](https://discuss.elastic.co/t/delete-all-alias-documents/23399/2 "2015-04-27T07:19:01Z")

</div>

So let me rephrase my question.

is there any other way to delete all documents assigned to an alias other  
than a delete by query request?

On Sunday, April 26, 2015 at 12:03:08 PM UTC+3, Zaid Amir wrote:

> Hi,
> 
> I was wondering what is the quickest way to delete all documents  
> associated with a specified alias or set of aliases.
> 
> Referring to the users data flow. Suppose some users unsubscribed and I  
> want to remove their data to free up unwanted used space, what is the  
> fastest way of doing this?

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/c7a0fd33-2015-42b0-a1f2-bebd73b8b9cf%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/c7a0fd33-2015-42b0-a1f2-bebd73b8b9cf%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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:** [July 6, 2017, 12:17am UTC](https://discuss.elastic.co/t/delete-all-alias-documents/23399/3 "2017-07-06T00:17:42Z")

</div>

Closed on July 6, 2017, 12:17am UTC


