Cisco Nexus 5000 Series Command Reference Release 4.0(1a)N2(1) (OL-16599-01, March 2009)

Send comments to nx5000-docfeedback@cisco.com
1-28
Cisco Nexus 5000 Series Command Reference
OL-16599-01
Chapter 1 Basic System Commands
delete
delete
To delete a file or directory, use the delete command.
delete [filesystem:] [//server/] [directory] filename
Syntax Description
Note There can be no spaces in the filesystem://server/directory/filename string. Individual elements of this
string are separated by colons (:) and slashes (/).
Command Default None
Command Modes EXEC mode
Command History
Usage Guidelines Use the dir command to locate the file you that want to delete.
The delete command will delete a directory and its contents. Exercise caution when using this command
to delete directories.
Examples This example shows how to delete a file:
switch# delete bootflash:old_config.cfg
This example shows how to delete a directory:
switch# delete my_dir
This is a directory. Do you want to continue (y/n)? [y] y
filesystem: (Optional) Name of the file system. Valid values are bootflash, debug, log,
modflash, or volatile.
//server/ (Optional) Name of the server. Valid values are ///, //module-1/, //sup-1/,
//sup-active/, or //sup-local/. The double slash (//) is required.
directory (Optional) Name of a directory. The directory name is case sensitive.
filename Name of the file to delete. The filename is case sensitive.
Release Modification
4.0(0)N1(1a) This command was introduced.