Parameter | Description | Value |
---|---|---|
filename | Specifies the name of a file to be deleted. | The value is a string of 1 to 160 case-insensitive characters without spaces in the format [ drive ] [ path ] filename. If the string is enclosed in double quotation marks (" "), the string can contain spaces. If the value is a file name, the value is a string of 1 to 64 characters. In the preceding parameter, drive specifies the storage device name, and path specifies the directory and subdirectory. You are advised to add : and / between the storage device name and directory. The directory name cannot contain the following characters: ~ * / \ : ' " The wildcard (*) character is supported. |
devicename | Specifies the storage device name. | - |
Usage Scenario
If you run the delete command without specifying the /unreserved parameter, the file is moved to the recycle bin and still occupies the memory. To free up the space, you can run the reset recycle-bin command to permanently delete the file from the recycle bin.
The following describes the drive name.
If devices are stacked, drive can be named as:
For example, slot2#flash: indicates the flash memory in slot 2.
Like devicename, drive specifies the storage device name.
Precautions
You can run the dir /all command to display all files that are moved to the recycle bin from the current directory, and file names are displayed in square brackets ([ ]).
If you delete a specified storage device, all files in the root directory of the storage device are deleted.
If you run the reset recycle-bin command directly, all files that are moved to the recycle bin from the current directory are permanently deleted.
# Delete the file test.txt that is moved to the recycle bin from the directory test.
<HUAWEI> reset recycle-bin flash:/test/test.txt Squeeze flash:/test/test.txt?[Y/N]:y %Cleared file flash:/test/test.txt.
# Delete files that are moved to the recycle bin from the current directory.
<HUAWEI> pwd flash:/test <HUAWEI> reset recycle-bin Squeeze flash:/test/backup.zip?[Y/N]:y %Cleared file flash:/test/backup.zip. Squeeze flash:/test/backup1.zip?[Y/N]:y %Cleared file flash:/test/backup1.zip.