Switch Management Commands 1879
delete
Use the delete command to delete files from flash. Files cannot be deleted
from the USB device.
Syntax
delete {
filename
| backup | backup-config | startup-config | core-dump-file
{file-name | all}
• filename — Name of the file to be deleted.
• backup—Deletes the backup.
• backup-config—Deletes the backup configuration.
• startup-config—Deletes the startup configuration.
• core-dump-file file-name - Delete the specified core dump file
• core-dump-file all – Delete all core dump files.
Default Configuration
This command has no default configuration.
Command Mode
Privileged Exec mode
User Guidelines
The file name may optionally include the path to the file, e.g., delete
crashlogs/crash.0.
Example
console#delete file1.scr
Delete file1.scr (Y/N)?y
dir
Use the dir command to print the contents of the flash file system or of a
subdirectory.