500 Internal Server Error

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 ?

Welcome to our community! :smiley:

Are you using Elastic App Search here?

Hi @DevPolo :wave:

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.

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

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