Delete - Cisco Catalyst 2950 Command Reference Manual

Desktop switch
Hide thumbs Also See for Catalyst 2950:
Table of Contents

Advertisement

Chapter 2
Cisco IOS Commands

delete

Use the delete privileged EXEC command to delete a file or directory on the Flash memory device.
Syntax Description
/force
/recursive
filesystem:
/file-url
Command Modes
Privileged EXEC
Command History
Release
12.0(5.2)WC(1)
12.1(6)EA2
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, refer to the Cisco IOS Command Reference for 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
Command
copy
dir filesystem:
rename
78-11381-05
delete [/force] [/recursive] filesystem:/file-url
(Optional) Suppress the prompt that confirms the deletion.
(Optional) Delete the named directory and all subdirectories and the files
contained in it.
Alias for a Flash file system. Use flash: for the system board Flash device.
The path (directory) and filename to delete.
Modification
This command was first introduced.
The /force and /recursive keywords were added.
Description
Downloads a file from a source, such as a TFTP server, to a destination,
such as the Flash memory.
Displays a list of files on a file system.
Renames a file.
Catalyst 2950 Desktop Switch Command Reference
delete
2-37

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents