@wrap_exceptions<EOL><INDENT>def remove(self, document_id, namespace, timestamp):<DEDENT>
index, doc_type = self._index_and_mapping(namespace)<EOL>action = {<EOL>"<STR_LIT>": "<STR_LIT>",<EOL>"<STR_LIT>": index,<EOL>"<STR_LIT>": doc_type,<EOL>"<STR_LIT>": str(document_id),<EOL>}<EOL>meta_action = {<EOL>"<STR_LIT>": "<STR_LIT>",<EOL>"<STR_LIT>": self.meta_index_name,<EOL>"<STR_LIT>": self.meta_type,<EOL>"<STR_LIT>": str(document_id),<EOL>}<EOL>self.index(action, meta_action)<EOL>
Remove a document from Elasticsearch.