Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 

file delete

 

Syntax

Release Information

Command introduced before Junos OS Release 7.4.

Command introduced in Junos OS Release 9.0 for EX Series switches.

Command introduced in Junos OS Release 11.1 for the QFX Series.

Command introduced in Junos OS Release 14.1X53-D20 for OCX Series switches.

Description

Delete a file on the local router or switch.

Options

filenameName of the file to delete. For a routing matrix, include chassis information in the filename if the file to be deleted is not local to the Routing Engine from which the command is issued.
purge(Optional) Overwrite regular files before deleting them.

Required Privilege Level

maintenance

List of Sample Output

file delete

file delete (Routing Matrix)

Output Fields

When you enter this command, you are provided feedback on the status of your request.

Sample Output

file delete

user@host> file list /var/tmp
user@host> file delete /var/tmp/snmpd.coreuser@host> file list /var/tmp

file delete (Routing Matrix)

user@host> file list lcc0-re0:/var/tmp
user@host> file delete lcc0-re0:/var/tmp/snmpd.coreuser@host> file list /var/tmp