delete

Deletes a flash or USB file.

Syntax

delete FLASH-FILE
delete USB-FILE

Parameters

FLASH-FILE
Specifies the flash file path in format flash://flash-type/file-name.
USB-FILE
Specifies the USB file path in format usb://file-name.

Modes

Exec mode

Usage Guidelines

This command is available only to users with the admin role.

Valid input file path must be provided.

The active PCAP file cannot be deleted.

Examples

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 deletes a system-created file.
device# delete flash://config-file/ 
Warning: File flash://config-file/ will be deleted (from flash). 
Do you want to continue? [y/n]: y