parameters: (self, index, body, doc_type=None, params=None)
return_statement: return self.transport.perform_request('POST', _make_path(index,
              doc_type, '_delete_by_query'), params=params, body=body)
docstring: Delete all documents matching a query.
          `<https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-delete-by-query.html>`_
  
          :arg index: A comma-separated list of index names to search; use `_all`
              or empty string to perform the operation on all indices
          :arg body: The search definition using the Query DSL
          :arg doc_type: A comma-separated list of document types to search; leave
              empty to perform the operation on all types
          :arg _source: True or false to return the _source field or not, or a
              list of fields to return
          :arg _source_exclude: A list of fields to exclude from the returned
              _source field
          :arg _source_include: A list of fields to extract and return from the
              _source field
          :arg allow_no_indices: Whether to ignore if a wildcard indices
              expression resolves into no concrete indices. (This includes `_all`
              string or when no indices have been specified)
          :arg analyze_wildcard: Specify whether wildcard and prefix queries
              should be analyzed (default: false)
          :arg analyzer: The analyzer to use for the query string
          :arg conflicts: What to do when the delete-by-query hits version
              conflicts?, default 'abort', valid choices are: 'abort', 'proceed'
          :arg default_operator: The default operator for query string query (AND
              or OR), default 'OR', valid choices are: 'AND', 'OR'
          :arg df: The field to use as default where no field prefix is given in
              the query string
          :arg expand_wildcards: Whether to expand wildcard expression to concrete
              indices that are open, closed or both., default 'open', valid
              choices are: 'open', 'closed', 'none', 'all'
          :arg from\\_: Starting offset (default: 0)
          :arg ignore_unavailable: Whether specified concrete indices should be
              ignored when unavailable (missing or closed)
          :arg lenient: Specify whether format-based query failures (such as
              providing text to a numeric field) should be ignored
          :arg preference: Specify the node or shard the operation should be
              performed on (default: random)
          :arg q: Query in the Lucene query string syntax
          :arg refresh: Should the effected indexes be refreshed?
          :arg request_cache: Specify if request cache should be used for this
              request or not, defaults to index level setting
          :arg requests_per_second: The throttle for this request in sub-requests
              per second. -1 means no throttle., default 0
          :arg routing: A comma-separated list of specific routing values
          :arg scroll: Specify how long a consistent view of the index should be
              maintained for scrolled search
          :arg scroll_size: Size on the scroll request powering the
              update_by_query
          :arg search_timeout: Explicit timeout for each search request. Defaults
              to no timeout.
          :arg search_type: Search operation type, valid choices are:
              'query_then_fetch', 'dfs_query_then_fetch'
          :arg size: Number of hits to return (default: 10)
          :arg slices: The number of slices this task should be divided into.
              Defaults to 1 meaning the task isn't sliced into subtasks., default
              1
          :arg sort: A comma-separated list of <field>:<direction> pairs
          :arg stats: Specific 'tag' of the request for logging and statistical
              purposes
          :arg terminate_after: The maximum number of documents to collect for
              each shard, upon reaching which the query execution will terminate
              early.
          :arg timeout: Time each individual bulk request should wait for shards
              that are unavailable., default '1m'
          :arg version: Specify whether to return document version as part of a
              hit
          :arg wait_for_active_shards: Sets the number of shard copies that must
              be active before proceeding with the delete by query operation.
              Defaults to 1, meaning the primary shard only. Set to `all` for all
              shard copies, otherwise set to any non-negative value less than or
              equal to the total number of copies for the shard (number of
              replicas + 1)
          :arg wait_for_completion: Should the request should block until the
              delete-by-query is complete., default True
docstring_summary: Delete all documents matching a query.
          `<https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-delete-by-query.html>`_
docstring_tokens: Delete all documents matching a query . <https : // www . elastic . co / guide / en / elasticsearch / reference / current / docs - delete - by - query . html > _
function: def delete_by_query(self, index, body, doc_type=None, params=None):
          """
          Delete all documents matching a query.
          `<https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-delete-by-query.html>`_
  
          :arg index: A comma-separated list of index names to search; use `_all`
              or empty string to perform the operation on all indices
          :arg body: The search definition using the Query DSL
          :arg doc_type: A comma-separated list of document types to search; leave
              empty to perform the operation on all types
          :arg _source: True or false to return the _source field or not, or a
              list of fields to return
          :arg _source_exclude: A list of fields to exclude from the returned
              _source field
          :arg _source_include: A list of fields to extract and return from the
              _source field
          :arg allow_no_indices: Whether to ignore if a wildcard indices
              expression resolves into no concrete indices. (This includes `_all`
              string or when no indices have been specified)
          :arg analyze_wildcard: Specify whether wildcard and prefix queries
              should be analyzed (default: false)
          :arg analyzer: The analyzer to use for the query string
          :arg conflicts: What to do when the delete-by-query hits version
              conflicts?, default 'abort', valid choices are: 'abort', 'proceed'
          :arg default_operator: The default operator for query string query (AND
              or OR), default 'OR', valid choices are: 'AND', 'OR'
          :arg df: The field to use as default where no field prefix is given in
              the query string
          :arg expand_wildcards: Whether to expand wildcard expression to concrete
              indices that are open, closed or both., default 'open', valid
              choices are: 'open', 'closed', 'none', 'all'
          :arg from\\_: Starting offset (default: 0)
          :arg ignore_unavailable: Whether specified concrete indices should be
              ignored when unavailable (missing or closed)
          :arg lenient: Specify whether format-based query failures (such as
              providing text to a numeric field) should be ignored
          :arg preference: Specify the node or shard the operation should be
              performed on (default: random)
          :arg q: Query in the Lucene query string syntax
          :arg refresh: Should the effected indexes be refreshed?
          :arg request_cache: Specify if request cache should be used for this
              request or not, defaults to index level setting
          :arg requests_per_second: The throttle for this request in sub-requests
              per second. -1 means no throttle., default 0
          :arg routing: A comma-separated list of specific routing values
          :arg scroll: Specify how long a consistent view of the index should be
              maintained for scrolled search
          :arg scroll_size: Size on the scroll request powering the
              update_by_query
          :arg search_timeout: Explicit timeout for each search request. Defaults
              to no timeout.
          :arg search_type: Search operation type, valid choices are:
              'query_then_fetch', 'dfs_query_then_fetch'
          :arg size: Number of hits to return (default: 10)
          :arg slices: The number of slices this task should be divided into.
              Defaults to 1 meaning the task isn't sliced into subtasks., default
              1
          :arg sort: A comma-separated list of <field>:<direction> pairs
          :arg stats: Specific 'tag' of the request for logging and statistical
              purposes
          :arg terminate_after: The maximum number of documents to collect for
              each shard, upon reaching which the query execution will terminate
              early.
          :arg timeout: Time each individual bulk request should wait for shards
              that are unavailable., default '1m'
          :arg version: Specify whether to return document version as part of a
              hit
          :arg wait_for_active_shards: Sets the number of shard copies that must
              be active before proceeding with the delete by query operation.
              Defaults to 1, meaning the primary shard only. Set to `all` for all
              shard copies, otherwise set to any non-negative value less than or
              equal to the total number of copies for the shard (number of
              replicas + 1)
          :arg wait_for_completion: Should the request should block until the
              delete-by-query is complete., default True
          """
          for param in (index, body):
              if param in SKIP_IN_PATH:
                  raise ValueError("Empty value passed for a required argument.")
          return self.transport.perform_request('POST', _make_path(index,
              doc_type, '_delete_by_query'), params=params, body=body)
function_tokens: def delete_by_query ( self , index , body , doc_type = None , params = None ) : for param in ( index , body ) : if param in SKIP_IN_PATH : raise ValueError ( "Empty value passed for a required argument." ) return self . transport . perform_request ( 'POST' , _make_path ( index , doc_type , '_delete_by_query' ) , params = params , body = body )