code: def _delete_handler(self, handler_class):
          
          to_remove = self._get_handler(handler_class)
          if not to_remove:
              logging.warning('Error we should have an element to remove')
          else:
              self.handlers.remove(to_remove)
              self.logger.removeHandler(to_remove)
docs: Delete a specific handler from our logger.