# Deleting all documents inside an engine 8.2

**URL:** <https://discuss.elastic.co/t/deleting-all-documents-inside-an-engine-8-2/307668>\
**Category:** Elastic Search\
**Tags:** elastic-app-search\
**Created:** [June 20, 2022, 2:12pm UTC](https://discuss.elastic.co/t/deleting-all-documents-inside-an-engine-8-2/307668 "2022-06-20T14:12:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![frolko](https://avatars.discourse-cdn.com/v4/letter/f/50afbb/32.png) [@frolko](https://discuss.elastic.co/u/frolko)\
**Post date:** [June 20, 2022, 2:12pm UTC](https://discuss.elastic.co/t/deleting-all-documents-inside-an-engine-8-2/307668/1 "2022-06-20T14:12:30Z")

</div>

I would like to delete all documents to app search before repopulate.

Is there a newer, better and simpler way than extracting a list of all ids and then looping to delete with 100 at the time?

references:

> [@Deleting all documents inside an engine](https://discuss.elastic.co/t/deleting-all-documents-inside-an-engine/200634):
>
> Is it possible to delete all the documents inside an engine at once?

> [@Delete documents in Enterprise Search](https://discuss.elastic.co/t/delete-documents-in-enterprise-search/305750):
>
> I wanted to delete documents in bulk in enterprise search and in documentation, I only found deleted documents by a list of ids. [https://www.elastic.co/guide/en/app-search/8.2/documents.html#documents-delete](https://www.elastic.co/guide/en/app-search/8.2/documents.html#documents-delete) but when I try to delete more than 100 records it gives me an error like the image. and when I delete documents in batches it's slow that it timeout here 53% were deleted and the other 47% were not deleted. can someone suggest any bette…

> [@Search returning deleted documents](https://discuss.elastic.co/t/search-returning-deleted-documents/102885):
>
> Hi, After a bulk operation to delete some documents of my index an search operation returns the removed documents. And for some reason few seconds later the same search is executed and they don't came up. Im currently using the RestClient api in java who should be syncronous operations. Why this happens and how can I overwelm that? best regards

---

<div class="post-metadata">

**Author:** ![Serena\_Chou](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/serena_chou/32/100087_2.png) [@Serena\_Chou](https://discuss.elastic.co/u/Serena_Chou)\
**Post date:** [June 21, 2022, 6:27pm UTC](https://discuss.elastic.co/t/deleting-all-documents-inside-an-engine-8-2/307668/2 "2022-06-21T18:27:06Z")

</div>

Hi Fredrick - are you trying to reset the documents in the engine? Why not delete the engine out of curiosity? Do you have crawls continuing to sync data into your App Search engine? How are you ingesting data into your engine?

---

<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 19, 2022, 6:27pm UTC](https://discuss.elastic.co/t/deleting-all-documents-inside-an-engine-8-2/307668/3 "2022-07-19T18:27:09Z")

</div>

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