In this step, you learn to delete the records in the index.
-
Perform DELETE action with the following URL to delete record with id = 1. Replace {ES_ENDPOINT_URL} with Elasticsearch Endpoint.
URL: {ES_ENDPOINT_URL}/organization/employee/1
-
You can also delete record based on the condition. POST the following URL to delete record where name = Rana Dave.
URL: {ES_ENDPOINT_URL}/organization/_delete_by_query
{ "query": { "match": { "name": "Rana Dave" } } }
`
-
In the next step, you learn to perform bulk operations for the update and delete.