# 500 Internal Server Error

**URL:** <https://discuss.elastic.co/t/500-internal-server-error/249970>\
**Category:** Elastic Search\
**Tags:** elastic-app-search\
**Created:** [September 25, 2020, 11:26am UTC](https://discuss.elastic.co/t/500-internal-server-error/249970 "2020-09-25T11:26:45Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![DevPolo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/devpolo/32/49232_2.png) [@DevPolo](https://discuss.elastic.co/u/DevPolo)\
**Post date:** [September 25, 2020, 11:26am UTC](https://discuss.elastic.co/t/500-internal-server-error/249970/1 "2020-09-25T11:26:45Z")

</div>

Hi everyone,

I'm actually trying to delete a document on my app search engine.

I'm getting this response:

> 500 Internal Server Error  
> If you are the administrator of this website, then please read this web application's log file and/or the web server's log file to find out what went wrong.

Here is my request :

> curl -X DELETE 'https://AWS\_HOST.com/api/as/v1/engines/ENGINE'   
> -H 'Content-Type: application/json'   
> -H 'Authorization: Bearer private-xxxxxxxxxxxxxxxxxxxx'   
> -d '["ID"]'

Could you help me solve my problem ?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [September 28, 2020, 3:40am UTC](https://discuss.elastic.co/t/500-internal-server-error/249970/2 "2020-09-28T03:40:50Z")

</div>

Welcome to our community! 😃

Are you using Elastic App Search here?

---

<div class="post-metadata">

**Author:** ![orhantoy](https://avatars.discourse-cdn.com/v4/letter/o/c5a1d2/32.png) [@orhantoy](https://discuss.elastic.co/u/orhantoy)\
**Post date:** [September 28, 2020, 11:14am UTC](https://discuss.elastic.co/t/500-internal-server-error/249970/3 "2020-09-28T11:14:29Z")

</div>

Hi @DevPolo 👋

The path to delete documents from an App Search engine is  
`/api/as/v1/engines/{ENGINE_NAME}/documents`  
Seems like you're missing the final `/documents` part.

Here's a link to the [docs](https://www.elastic.co/guide/en/app-search/current/documents.html#documents-delete).

---

<div class="post-metadata">

**Author:** ![DevPolo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/devpolo/32/49232_2.png) [@DevPolo](https://discuss.elastic.co/u/DevPolo)\
**Post date:** [September 29, 2020, 8:49am UTC](https://discuss.elastic.co/t/500-internal-server-error/249970/4 "2020-09-29T08:49:47Z")

</div>

Hi and thank you 🙂  
Yes, I'm using Elastic App search indeed 🙂

---

<div class="post-metadata">

**Author:** ![DevPolo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/devpolo/32/49232_2.png) [@DevPolo](https://discuss.elastic.co/u/DevPolo)\
**Post date:** [September 29, 2020, 8:52am UTC](https://discuss.elastic.co/t/500-internal-server-error/249970/5 "2020-09-29T08:52:27Z")

</div>

Hi @orhantoy

Yes I was using the \*/document route. I just forgot to mention it in my post.

I just realized that this route is limited to 100 IDs. Sending more than 100 send me back an 500 error.

Is there an other way to delete more than 100 IDs ?

Thank you very much for your support,  
DevPolo

---

<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:** [October 27, 2020, 9:30am UTC](https://discuss.elastic.co/t/500-internal-server-error/249970/7 "2020-10-27T09:30:11Z")

</div>

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