def remove_logrotate(app_name):
 app_logrotate_script = '{0}/appscale-{1}'.format(LOGROTATE_CONFIG_DIR, app_name)
 logging.debug('Removing script: {}'.format(app_logrotate_script))
 try:
  os.remove(app_logrotate_script)
 except OSError:
  logging.error('Error deleting {0}'.format(app_logrotate_script))
  return False
 return True

def remove_logrotate ( app_name ) : app_logrotate_script = '{0}/appscale-{1}' . format ( LOGROTATE_CONFIG_DIR , app_name ) logging . debug ( 'Removing script: {}' . format ( app_logrotate_script ) ) try : os . remove ( app_logrotate_script ) except OSError : logging . error ( 'Error deleting {0}' . format ( app_logrotate_script ) ) return False return True
removes logrotate script for the given application .