delete
Deletes a directory or file in nonvolatile storage. There is no no version.
NOTE: See Deleting Files in JUNOSe System Basics Configuration Guide, Chapter 5, Managing the System, for detailed information on file type usage with the delete command.
delete { filename | directory directoryName[:fileName ] } [ force ]
- fileNameName 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.
- directoryNamePath 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.
- forceForces 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.
Boot, Privileged Exec, User Exec
Release Information Command introduced before JUNOSe Release 7.1.0.
fileName variable added for directory keyword in JUNOSe Release 9.1.0.