Delete a file from a USB Device

Use the following procedure to delete a file from an external USB device.

Caution

Caution

Always use the usb-stop command to safely unplug the USB drive from the USB slot.

Procedure

  1. Enter Privileged EXEC mode:

    enable

  2. Delete a file from a USB device:

    delete WORD<1–255>

Example

Switch:1#enable

Switch:1#delete /usb/test.cfg
Are you sure (y/n) ? y

Variable Definitions

The following table defines parameters for the delete command.

Variable

Value

WORD<1–255>

Specifies the file name in the following format:

  • /usb/<file>