def delete_record(self, instance):
objectID = self.objectID(instance)<EOL>try:<EOL><INDENT>self.__index.delete_object(objectID)<EOL>logger.info('<STR_LIT>', objectID, self.model)<EOL><DEDENT>except AlgoliaException as e:<EOL><INDENT>if DEBUG:<EOL><INDENT>raise e<EOL><DEDENT>else:<EOL><INDENT>logger.warning('<STR_LIT>', objectID,<EOL>self.model, e)<EOL><DEDENT><DEDENT>
Deletes the record.