def clear_index(self):
try:<EOL><INDENT>self.__index.clear_index()<EOL>logger.info('<STR_LIT>', self.index_name)<EOL><DEDENT>except AlgoliaException as e:<EOL><INDENT>if DEBUG:<EOL><INDENT>raise e<EOL><DEDENT>else:<EOL><INDENT>logger.warning('<STR_LIT>', self.model, e)<EOL><DEDENT><DEDENT>
Clears the index.