NOTE: You are looking at documentation for an older release. For the latest information, see the current release documentation.
The delete API allows one to delete a typed JSON document from a specific
index based on its id. The following example deletes the JSON document
from an index called twitter, under a type called
_doc, with id valued
DeleteResponse response = client.prepareDelete("twitter", "_doc", "1").get();
For more information on the delete operation, check out the delete API docs.