Command:

delete


Mode:

Router#

Syntax:

delete flash-url
undelete flash-url

Syntax Description:

 

flash-url

URL of the file to be deleted.

 

Command Description:


To delete a file on a Flash memory device, use the delete EXEC command.

When you delete a file, the software simply marks the file as deleted, but it does not erase the file. This feature allows you to later recover a "deleted" file using the undelete command. You can delete and undelete a file up to 15 times. To permanently delete all files marked "deleted" on a Flash memory device, use the squeeze command.

If you attempt to delete the configuration file or image specified by the CONFIG_FILE or BOOTLDR environment variable, the system prompts you to confirm the deletion. Also, if you attempt to delete the last valid system image specified in the BOOT environment variable, the system prompts you to confirm the deletion.


Example:

The following example deletes the file named test from the Flash card inserted in slot 0:

 

Router#delete slot0:test

Delete slot0:test? [confirm]

Misconceptions:
None

Related Commands:
erase
copy
dir
cd

� Cisco Systems, Inc. 2001, 2002, 2003
World Wide Education

Converted from CHM to HTML with chm2web Pro 2.85 (unicode)