2-81
Catalyst 2950 and Catalyst 2955 Switch Command Reference
OL-10102-01
Chapter 2 Catalyst 2950 and 2955 Cisco IOS Commands
delete
delete
Use the delete privileged EXEC command to delete a file or directory on the flash memory device.
delete [/force] [/recursive] filesystem:/file-url
Syntax Description
Command Modes Privileged EXEC
Command History
Usage Guidelines If you use the /force keyword, you are prompted once at the beginning of the deletion process to confirm
the deletion.
If you use the /recursive keyword without the /force keyword, you are prompted to confirm the deletion
of every file.
The prompting behavior depends on the setting of the file prompt global configuration command. By
default, the switch prompts for confirmation on destructive file operations. For more information about
this command, see the Cisco IOS Command Reference for Cisco IOS Release 12.1.
Examples This example shows how to delete a file from the switch flash memory:
Switch# delete flash:filename
You can verify that the directory was removed by entering the dir filesystem: privileged EXEC
command.
Related Commands
/force (Optional) Suppress the prompt that confirms the deletion.
/recursive (Optional) Delete the named directory and all subdirectories and the files
contained in it.
filesystem: Alias for a flash file system. Use flash: for the system board flash device.
/file-url The path (directory) and filename to delete.
Release Modification
12.0(5.2)WC(1) This command was introduced.
12.1(6)EA2 The /force and /recursive keywords were added.
Command Description
copy Downloads a file from a source, such as a TFTP server, to a destination, such
as the flash memory.
dir filesystem: Displays a list of files on a file system.
rename Renames a file.