How Do I Delete Files?
Run the delete [ /unreserved ] [ /quiet ] { filename | devicename } [ all ] command to delete specified files, such as system files, configuration files, patch files, and log files, from a storage medium.
- Delete a file from the storage medium.
<HUAWEI> delete test.txt Delete flash:/test.txt?[Y/N]:y Info: Deleting file flash:/test.txt...succeeded.
- The actual output information may differ from the preceding information.
- The all parameter is supported only in a stack. When this parameter is specified, the command deletes 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.
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.<HUAWEI> cd logfile/ <HUAWEI> 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.<HUAWEI> 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.