Deletes a flash or USB file.
Exec mode
This command is available only to users with admin role.
Valid input file path must be provided.
The active PCAP file cannot be deleted.
The following examples show how to delete configuration files.
device# delete flash://config-file test.txt Warning: File flash://config-file/test.txt will be deleted (from flash). Do you want to continue? [y/n]: device# delete usb://test Warning: File usb://test will be deleted (from usb). Do you want to continue? [y/n]:
The following example deletes a PCAP file.
device# delete flash://pcap-file/test.pcap
The following example attempt to delete a
system-created
file.device# delete flash://config-file ../config_file
Warning: File flash://config-file/../config_file will be deleted (from flash).
Do you want to continue? [y/n]: y
Error : while removing the file flash://config-file/../config_file
The following examples show the error messages.Invalid file:
device# delete usb://file
Error: File not found
USB not enabled:
device# delete usb://file
Error: USB not enabled