Introduction to Amazon Elasticsearch

   Go back to the Task List

  « 5. Update the Data    7. Bulk Update and Delete »

6. Delete the Data

In this step, you learn to delete the records in the index.

  1. 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

    Amazon Elasticsearch

  2. 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"
        }
      }
    }
    

    `

    Amazon Elasticsearch

  3. In the next step, you learn to perform bulk operations for the update and delete.