R3721-F3210-F3171-HP High-End Firewalls System Management and Maintenance Command Reference-6PW101
48
View
User view
Default level
3: Manage level
Parameters
/force: Deletes all files in the recycle bin, including files that cannot be deleted by the command without
the /force keyword.
Description
Use reset recycle-bin to permanently delete the files in the recycle bin in the current directory.
If a file is corrupted, you may not be able to delete the file using the reset recycle-bin command. Use the
reset recycle-bin /force command to delete the corrupted file in the recycle bin forcibly.
The delete file-url command only moves a file to the recycle bin. To permanently delete the file in the
recycle bin, use the reset recycle-bin command in the original directory of the file.
The reset recycle-bin command deletes files in the current directory and in the recycle bin. If the original
path of the file to be deleted is not the current directory, use the cd command to enter the original
directory of the file, and then execute the reset recycle-bin command.
Examples
# Delete file startup.cfg in the current directory and in the recycle bin.
1. Display all the files in the recycle bin and in the current directory.
<Sysname> dir /all
Directory of flash0:/
0 -rwh 896 Feb 17 2011 14:20:02 private-data.txt
1 -rw- 25535 Feb 17 2011 14:20:02 system.xml
2 -rw- 1780 Feb 17 2011 14:20:04 startup.cfg
3 -rw- 14617560 Feb 15 2011 15:23:29 main.bin
4 drw- - Jan 06 2011 14:46:09 domain1
5 -rw- 891 Jan 06 2011 14:46:18 default_ca.cer
6 -rw- 1411 Jan 06 2011 14:46:18 default_local.cer
7 -rwh 716 Jan 06 2011 14:46:18 hostkey
8 drw- - Jan 06 2011 14:46:07 seclog
9 -rw- 25135 Jan 13 2011 15:50:51 [system.xml]
1048192 KB total (1018012 KB free)
//The output shows that the current directory is flash0:, and there are two files system.xml and
startup.cfg in the recycle bin.
2. Delete file startup.cfg in the current directory and in the recycle bin.
<Sysname> reset recycle-bin
Clear flash0:/~/system.xml ?[Y/N]:n
Clear flash0:/~/startup.cfg ?[Y/N]:y
Clearing files from flash may take a long time. Please wait...
......
%Cleared file flash0:/~/system.xml
3. In directory flash0:, check whether the file startup.cfg in the recycle bin is deleted.