How to delete files

Run the delete [ /unreserved ] [ /quiet ] { filename | devicename } [ all ] command to delete specified files including system files, configuration files, patch files, license files, and log files from a storage medium.

Delete a file from the storage medium.
delete test.txt
Delete flash:/test.txt?[Y/N]:y
Info: Deleting file flash:/test.txt...succeeded. NOTE:
The actual output information may differ from the preceding information.
The all parameter is supported only in a stack. If you specify the all parameter, you can delete all the files in the corresponding directories on all member devices in a batch.
Do not delete running version files (including system software, patch files, web page files, and configuration files) in the CLI. You can use the BootROM menu to delete running version files. After a version file is deleted, the device cannot restart using the version file. Exercise caution when you delete a version file.
Log files are stored in the logfile or syslogfile directory of the flash memory. You can access the logfile or syslogfile directory and then delete log files, or directly delete log files from the absolute path of the flash memory.

# Access the logfile directory and then delete log files.
cd logfile/
delete logfile-2013-01-24-09-15-03.zip
Delete flash:/logfile/logfile-2013-01-24-09-15-03.zip?[Y/N]:y
Info: Deleting file flash:/logfile/logfile-2013-01-24-09-15-03.zip...succeeded. # Delete log files from the absolute path of the flash memory.
delete flash:/logfile/logfile-2013-01-24-09-15-03.zip
Delete flash:/logfile/logfile-2013-01-24-09-15-03.zip?[Y/N]:y
Info: Deleting file flash:/logfile/logfile-2013-01-24-09-15-03.zip...succeeded.

Scroll to top