# elasticsearchDataManagement.deleteByQuery

## Description
Delete documents by query
Deletes multiple documents from the specified Elasticsearch index based on the query.
This endpoint supports deletion of documents that match a given JSON-based query.
<br>For detailed guidelines on constructing queries, please refer to the <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-delete-by-query.html">Elasticsearch Delete By Query Documentation.</a>

## When to use
<!-- Describe user intent that should trigger this tool -->

## What this returns
<!-- Describe the shape / purpose of the response -->

## Notes
<!-- Constraints, ordering, related tools, etc. -->
