def delete_document(self, document_id, database_name=None, collection_name=None):
if document_id is None:<EOL><INDENT>raise AirflowBadRequest("<STR_LIT>")<EOL><DEDENT>self.get_conn().DeleteItem(<EOL>get_document_link(<EOL>self.__get_database_name(database_name),<EOL>self.__get_collection_name(collection_name),<EOL>document_id))<EOL>
Delete an existing document out of a collection in the CosmosDB database.