Delete document
> Documentation > Docs > INFINI Pizza > References > Document > Delete document

Delete document #

Removes a JSON document from the specified collection.

Examples #

Delete the JSON document 1 from my-collection:

DELETE /my-collection/_doc/0,0

The API returns the following result:

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

Request #

DELETE /<target>/_doc/<id>

Path parameters #

  • <target>
    (Required, string) Name of the collection to target.
  • <id>
    (Required, string) Unique identifier for the document.