- Java Transport Client (deprecated): other versions:
- Preface
- Javadoc
- Maven Repository
- Client
- Document APIs
- Search API
- Aggregations
- Query DSL
- Java API Administration
IMPORTANT: No additional bug fixes or documentation updates
will be released for this version. For the latest information, see the
current release documentation.
Delete API
edit
IMPORTANT: This documentation is no longer updated. Refer to Elastic's version policy and the latest documentation.
Delete API
editThe 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 tweet, with id valued 1:
DeleteResponse response = client.prepareDelete("twitter", "tweet", "1").get();
For more information on the delete operation, check out the delete API docs.
Was this helpful?
Thank you for your feedback.