- PHP Client: other versions:
- Overview
- Getting started
- Installation
- Connecting
- Configuration
- Operations
- Client helpers
- Release notes
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
edit
IMPORTANT: This documentation is no longer updated. Refer to Elastic's version policy and the latest documentation.
Deleting documents
editFinally, you can delete documents by specifying their full /index/_doc_/id
path:
$params = [ 'index' => 'my_index', 'id' => 'my_id' ]; // Delete doc at /my_index/_doc_/my_id $response = $client->delete($params);
Was this helpful?
Thank you for your feedback.