Chapter 15: File System Commands
230
DELETE FILE
Syntax
delete file=”filename
Parameter
file Specifies the name of the file to be deleted. A name
with spaces must be enclosed in double quotes.
Otherwise, the quotes are optional. You cannot use
wildcards.
Description
This command deletes a file from the file system. To list the files in the
file system, refer to SHOW FILE on page 234. When deleting a file, note
the following:
Deleting the configuration file that is acting as the active boot
configuration file will cause the switch to use its default settings
the next time you reboot or power cycle the switch, unless you
select another active boot configuration file. For instructions on
how to change the active boot configuration file, refer to see SET
CONFIG on page 232.
To delete a certificate, you must first remove the certificate from
the certificate database using DELETE PKI CERTIFICATE on page
523.
Files with a “.ukf” extension cannot be deleted with this
command. These files are encryption key pairs. To delete an
encryption key, refer to DESTROY ENCO KEY on page 512.
Example
The following command deletes the configuration file named Switch
12.cfg:
delete file=”Switch 12.cfg”
The following command deletes the certificate enrollment request
SW55a.csr:
delete file=SW55a.csr