original_docstring: Delete all records associated with the given document.
docstring: Delete all records associated with the given document.
docstring_tokens: Delete all records associated with the given document .
code: def delete_records(document_id=None, collection_id=None, sync=False):
      """Delete all records associated with the given document."""
      q = {'term': {'document_id': document_id}}
      if collection_id is not None:
          q = {'term': {'collection_id': collection_id}}
      query_delete(records_read_index(), q, refresh=sync)
code_tokens: def delete_records ( document_id = None , collection_id = None , sync = False ) : q = { 'term' : { 'document_id' : document_id } } if collection_id is not None : q = { 'term' : { 'collection_id' : collection_id } } query_delete ( records_read_index ( ) , q , refresh = sync )
short_docstring: Delete all records associated with the given document.
short_docstring_tokens: Delete all records associated with the given document .
comment: """Delete all records associated with the given document."""