Deleting documents
edit
A newer version is available. Check out 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);