how to refresh the config and how to delete all log