delete
Syntax
delete { filename | directory directoryName[:fileName ] } [ force ]
Release Information
Command introduced before JunosE Release
7.1.0.
fileName variable added
for directory keyword in JunosE Release
9.1.0.
Description
Deletes a directory or file in nonvolatile storage. There is no no version.
![]() | Note: For detailed information on file type usage with the delete command, see Deleting Files in the JunosE System Basics Configuration Guide. |
Options
- fileName—Name of the local file you are deleting (for example, system1.cnf); in User Exec and Privileged Exec mode only, an asterisk (*) in any position in the filename substitutes for zero or more characters; using an asterisk causes the CLI to prompt you for confirmation before the file or directory is deleted. You cannot delete reboot.hty or system.log files when you use an asterisk.
- directoryName—Path of a directory. To delete a file in user space, specify the incoming or outgoing directory on the FTP server; you can specify the name of a subdirectory in the incoming or outgoing directory. You cannot use an asterisk in a directory name.
- force—Forces deletion of directory or file even
when it is not empty; however, if a file in the specified directory,
or a specified file, is marked by the file system as in use because
it is required for the current operation or configuration, the force keyword cannot force a deletion of the directory.
The force keyword is ignored when you attempt to delete any .dmp or .tsa file (unless the deletion is issued from a .mac or .scr file); this means that the CLI always prompts for confirmation for these file types.
Mode
Boot, Privileged Exec, User Exec
Hide Navigation Pane
Show Navigation Pane
SHA1
