{"id":14538,"date":"2022-10-22T14:15:59","date_gmt":"2022-10-22T11:15:59","guid":{"rendered":"https:\/\/kifarunix.com\/?p=14538"},"modified":"2024-03-09T22:54:57","modified_gmt":"2024-03-09T19:54:57","slug":"delete-specific-records-from-elasticsearch-index","status":"publish","type":"post","link":"https:\/\/kifarunix.com\/delete-specific-records-from-elasticsearch-index\/","title":{"rendered":"Delete Specific Records from Elasticsearch Index"},"content":{"rendered":"\n

This is a simple tutorial on how to search and delete specific records from Elasticsearch index. Elasticsearch ships with a delete_by_query<\/a> API that enables you to search Elasticsearch index for records that matches a specified query and delete them.<\/p>\n\n\n\n

Delete Specific Records from Elasticsearch Index<\/h2>\n\n\n\n

Required Permissions<\/h3>\n\n\n\n

Note that if the security features are enabled on your Elasticsearch cluster, you need to have the the following permissions to use delete_by_query API, you need to delete records.<\/p>\n\n\n\n