Delete a document

Delete a document #

Delete a specific document from the specified collection by specifying its unique identifier.

Examples #

Delete the document 0,0 from collection my-collection:

DELETE /my-collection/_doc/0,0

The API returns the following result:

{
  "_id": "0,0",
  "result": "deleted",
  ...
}

Request #

DELETE /<target>/_doc/<doc_id>

Path parameters #

  • <target>
    (Required, string) Name of the collection to target.
  • <doc_id>
    (Required, string) Unique identifier for the document, support both _key or _id.
Calendar August 28, 2024
Edit Edit this page