Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

clear log

Syntax

Description

Remove contents of a log file.

Options

filename

Name of the specific log file to delete. Note that the file name cannot contain any special characters, including: ![=;|(){}]

all

(Optional) Delete the specified log file and all archived versions of it.

Required Privilege Level

clear and trace-control

Output Fields

See file list for an explanation of output fields.

Sample Output

clear log

The following sample commands list log file information, clear the contents of a log file, and then display the updated log file information:

Release Information

Command introduced before Junos OS Release 7.4.