'Clear the main log.
@return boolean result always returns True unless error'

def clearLog(self):

    self._update('clearLog')
    logfile = self.supervisord.options.logfile
    if ((logfile is None) or (not self.supervisord.options.exists(logfile))):
        raise RPCError(Faults.NO_FILE)
    try:
        self.supervisord.options.remove(logfile)
    except (OSError, IOError):
        raise RPCError(Faults.FAILED)
    for handler in self.supervisord.options.logger.handlers:
        if hasattr(handler, 'reopen'):
            self.supervisord.options.logger.info('reopening    log    file')
            handler.reopen()
    return True
