Elasticsearch DELETE

By Opster Team

Updated: Jan 28, 2024

| 1 min read


DELETE is an Elasticsearch API which removes a document from a specific index. This API requires an index name and _id document to delete the document. 

Delete a document

DELETE /my_index/_doc/1


  • A delete request throws 404 error code if the document does not already exist in the index.
  • If you want to delete a set of documents that  matches a query, you need to use delete by query API.

How helpful was this guide?

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?

Related log errors to this ES concept

Failed to delete shard data for shard
Unable to delete snapshot file
Unable to delete global metadata file
Failed to delete metadata for index
Failed to delete shard snapshot file
Failed to delete index blob during finalization
Failed to delete data blob during finalization
Failed to delete temp file
PreDelete listener failed
PostDelete listener failed
Failed to delete role-mapping
Failed to delete role

< Page: 2 of 10 >