DES-7200 Configuration Guide Chapter 1 File System Configuration
1-14
1.3.9 Deleting Directories
The following example shows how to delete an unempty aaa directory:
Show the current directory status:
DES-7200#dir
Directory of flash:/
Mode Link Size MTime Name
-------- ---- --------- -------------------
------------------
1 11014633 2006-01-01 08:00:46 firmware.bin
<dir> 1 0 2006-01-01 08:00:00 aaa/
1 399 2006-01-01 08:01:37 config.text
----------------------------------------------------------
----
2Files (Total size 11015032 Bytes), 1 Directories
Total 33030144 bytes (31MB) in this device, 9563693 bytes (9MB)
available
Check whether there is a file in aaa directory:
DES-7200#dir aaa
Directory of flash:/aaa
Mode Link Size MTime Name
-------- ---- --------- -------------------
------------------
1 149 2006-01-01 08:01:37 backup.txt
----------------------------------------------------------
----
1Files (Total size 149 Bytes), 0 Directories
Total 33030144 bytes (31MB) in this device, 9563693 bytes (9MB)
available
The aaa directory is not empty. Delete the files first:
DES-7200# delete aaa/backup.txt
Delete the empty directory:
DES-7200# rmdir aaa
Check the result:
DES-7200#dir
Directory of flash:/
Mode Link Size MTime Name
-------- ---- --------- -------------------
------------------
1 11014633 2006-01-01 08:00:46 firmware.bin
1 399 2006-01-01 08:01:37 config.text