# Engine Name is already Taken (second occurrence)

**URL:** <https://discuss.elastic.co/t/engine-name-is-already-taken-second-occurrence/313412>\
**Category:** Elastic Search\
**Created:** [September 1, 2022, 6:29am UTC](https://discuss.elastic.co/t/engine-name-is-already-taken-second-occurrence/313412 "2022-09-01T06:29:48Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Brian\_McGue](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/brian_mcgue/32/63366_2.png) [@Brian\_McGue](https://discuss.elastic.co/u/Brian_McGue)\
**Post date:** [September 2, 2022, 12:21am UTC](https://discuss.elastic.co/t/engine-name-is-already-taken-second-occurrence/313412/2 "2022-09-02T00:21:53Z")

</div>

Hi @Rav_Panchalingam,

I'm sorry about the presentation. That's awful to hear.

We do have an API to delete documents: [Documents API | App Search documentation [8.11] | Elastic](https://www.elastic.co/guide/en/app-search/current/documents.html#documents-delete).

This takes a JSON array of strings as document IDs. Does that work for you? How many documents are you trying to delete? Everything in the engine? I'm not sure about the limits on the number of documents you can delete with that API actually, but as a warning, if the documents are large or you're trying to delete a very large number of documents, that endpoint may not be very performant.

I'm surprised with the original error you're receiving, though. Are you able to reproduce this error in a consistent way? Are you checking the responses of the delete API calls? Curious to know more about this. I wouldn't expect the records to exist in the index still. Artem mentioned:

> [@Engine Name is already Taken](https://discuss.elastic.co/t/engine-name-is-already-taken/306961/12):
>
> It's something that can when Enterprise Search is overloaded, crashes in the middle of index creation or if Elasticsearch goes away during creation of index

It seems more likely that isn't something wrong with the deletion side of things, but I'm interested to dig further.

Best  
Brian

---

_[View the full topic](https://discuss.elastic.co/t/engine-name-is-already-taken-second-occurrence/313412)._
