def delete(self, resource_id):
self.logger.debug('<STR_LIT>'.format(resource_id))<EOL>if self.driver._es.exists(<EOL>index=self.driver._index,<EOL>id=resource_id,<EOL>doc_type='<STR_LIT>'<EOL>) == False:<EOL><INDENT>raise ValueError("<STR_LIT>".format(resource_id))<EOL><DEDENT>return self.driver._es.delete(<EOL>index=self.driver._index,<EOL>id=resource_id,<EOL>doc_type='<STR_LIT>'<EOL>)<EOL>
Delete an object from elasticsearch.
        :param resource_id: id of the object to be deleted.
        :return: