R3721-F3210-F3171-HP High-End Firewalls System Management and Maintenance Command Reference-6PW101

50
Description
Use rmdir to remove a folder.
The folder must be an empty one. If not, you need to delete all files and subfolders under it with the delete
command.
After you execute the rmdir command successfully, the files in the recycle bin in the folder will be
automatically deleted.
Examples
# Remove folder mydir.
<Sysname> rmdir mydir
Rmdir flash0:/mydir?[Y/N]:y
%Removed directory flash0:/mydir.
undelete
Syntax
undelete file-url
View
User view
Default level
3: Manage level
Parameters
file-url: Name of the file to be restored.
Description
Use undelete to restore a file from the recycle bin.
If another file with the same name exists in the same path, the system prompts you whether to overwrite
the original file.
Examples
# Restore file a.cfg in directory flash0: from the recycle bin.
<Sysname> undelete a.cfg
Undelete flash0:/a.cfg?[Y/N]:y
.....
%Undeleted file flash0:/a.cfg.
# Restore file b.cfg in directory flash0:/test from the recycle bin.
<Sysname> undelete flash0:/test/b.cfg
Undelete flash0:/test/b.cfg?[Y/N]:y
.......
%Undeleted file flash0:/test/b.cfg.
Or, you can use the following steps to restore file flash0:/test/b.cfg.
<Sysname> cd test
<Sysname> undelete b.cfg
Undelete flash0:/test/b.cfg?[Y/N]:y