original_docstring: Deletes a single document from the current collection by its id.
docstring: Deletes a single document from the current collection by its id.
docstring_tokens: Deletes a single document from the current collection by its id .
code: def delete_doc(id):
      """Deletes a single document from the current collection by its id."""
      es_index = collections.current().es_index
      index_url = f'{ES_URL}/{es_index}'
      resp = requests.delete(f'{index_url}/{DOCUMENT_TYPE}/{id}')
      check_response(resp)
code_tokens: def delete_doc ( id ) : es_index = collections . current ( ) . es_index index_url = f'{ES_URL}/{es_index}' resp = requests . delete ( f'{index_url}/{DOCUMENT_TYPE}/{id}' ) check_response ( resp )
short_docstring: Deletes a single document from the current collection by its id.
short_docstring_tokens: Deletes a single document from the current collection by its id .
comment: """Deletes a single document from the current collection by its id."""