IMPORTANT: No additional bug fixes or documentation updates
will be released for this version. For the latest information, see the
current release documentation.
Deleting Documents
editDeleting Documents
editDeleting a document is fairly straightforward. This example shows how to delete our previous customer with the ID of 2:
DELETE /customer/external/2?pretty
See the Delete By Query API to delete all documents matching a specific query. It is worth noting that it is much more efficient to delete a whole index instead of deleting all documents with the Delete By Query API.