CLI Reference Guide-R07

Table Of Contents
Chapter 4
| System Management Commands
File Management
– 117 –
delete This command deletes a file or image.
Syntax
delete {file {unit unit no. {name filename} | name filename}| | https-certificate
| public-key username }
file - Keyword that allows you to delete a file.
name - Keyword indicating a name of a file.
filename - Name of configuration file or code image.
unit no. - Unit number of the switch
https-certificate - Keyword that allows you to delete the HTTPS secure site
certificate. You must reboot the switch to load the default certificate.
public-key - Keyword that allows you to delete a SSH key on the switch.
(See “Secure Shell” on page 244.)
username Name of an SSH user. (Range: 1-32 characters)
Default Setting
None
Command Mode
Privileged Exec
Command Usage
If the file type is used for system startup, then this file cannot be deleted.
“Factory_Default_Config.cfg” cannot be deleted.
Example
This example shows how to delete the test2.cfg configuration file from flash
memory.
Console#delete file name test2.cfg
Console#
Related Commands
dir (118)
delete public-key (248)