IMPORTANT: elasticsearch.js has been replaced by the new Elasticsearch JavaScript client. We strongly advise you to migrate to the new client. To learn more, see the migration guide.
delete
editdelete
editclient.delete([params, [callback]])
Delete a typed JSON document from a specific index based on its id.
Check the API Conventions and the elasticsearch docs for more information pertaining to this method.
Delete the document /myindex/mytype/1
.
await client.delete({ index: 'myindex', type: 'mytype', id: '1' });
Params
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|