Deleting Files in Nonvolatile Storage
You can use the delete command to delete files in NVS. Table 36 shows the types of files you can delete in different locations.
Table 36: File Types You Can Delete
Location | |||
|---|---|---|---|
System Space | User Space (Linked Files and Unlinked Files) | Network Host Within a Firewall | Standby SRP Module |
*.cnf *.dmp *.hty *.log *.mac *.rel *.scr *.sts *.txt | *.cnf *.dmp *.hty *.log *.mac *.pub *.rel *.scr *.sts *.txt Nonsystem files | None | *.dmp |
To delete files in NVS:
- 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.host1#delete /outgoing/test.scr
- Delete multiple local files using an asterisk (*) as a
wildcard. You can include an asterisk (*) as a wildcard at any position
in a specified filename. The asterisk substitutes for zero or more
characters in the name. You cannot use an asterisk in a directory
or subdirectory name. host1#del test*.txt Delete disk0:test-1.txt? [confirm] -> press ndisk0:test-1.txt: not deleted (per user request)Delete disk0:test-2.txt? [confirm] -> press ydisk0:test-2.dmp: DeletedDeleted 1 file, matched 2 files

Note: You cannot delete reboot.hty or system.log files when you use a wildcard.
- Delete a specific local file. When you do not use a wildcard,
the CLI deletes the file immediately without prompting you for confirmation.host1#delete test-2.txt host1#
- Delete multiple local files without confirmation from
the user. Use the force keyword along with
the wildcard to perform deletion without confirmation. The force keyword causes the immediate deletion of the
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 the deletion.host1#del test*.txt force disk0:test-1.txt: deleteddisk0:test-2.txt: deletedDeleted 2 files, matched 2 fileshost1#del *.dmp force WARNING: The force option is ignored for this file type.Delete disk0:sample-1.dmp? [confirm] -> press ndisk0:sample-1.dmp: not deleted (per user request)Delete disk0:sample-2.dmp? [confirm] -> press ydisk0:sample-2.dmp: DeletedDeleted 1 file, matched 2 files

Note: 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.
Hide Navigation Pane
Show Navigation Pane
SHA1