■ 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.
■ You cannot delete reboot.hty or system.log files when you use a wildcard.
■ When you do not use a wildcard, the CLI deletes the file immediately without
prompting you for confirmation. When you use a wildcard, the CLI prompts you
for confirmation unless you also specify the force keyword; in that case the
deletion takes place 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.
■ 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.
■ Examples
host1#delete test-2.txt
host1#
host1#del test*.txt
Delete disk0:test-1.txt? [confirm] -> press n
disk0:test-1.txt: not deleted (per user request)
Delete disk0:test-2.txt? [confirm] -> press y
disk0:test-2.dmp: Deleted
Deleted 1 file, matched 2 files
host1#del test*.txt force
disk0:test-1.txt: deleted
disk0:test-2.txt: deleted
Deleted 2 files, matched 2 files
host1#del *.dmp force
WARNING: The force option is ignored for this file type.
Delete disk0:sample-1.dmp? [confirm] -> press n
disk0:sample-1.dmp: not deleted (per user request)
Delete disk0:sample-2.dmp? [confirm] -> press y
disk0:sample-2.dmp: Deleted
Deleted 1 file, matched 2 files
host1#delete /outgoing/test.scr
■ There is no no version.
Table 36: File Types You Can Delete
Location
Standby SRP ModuleNetwork Host Within
a Firewall
User Space
(Linked Files and
Unlinked Files)
System Space
Managing Files ■ 295
Chapter 5: Managing the System