F3726, F3211, F3174, R5135, R3816-HP Firewalls and UTM Devices System Management and Maintenance Command Reference-6PW100

47
Syntax
rmdir directory
Views
User view
Default command level
3: Manage level
Parameters
directory: Name of the folder.
Usage guidelines
The folder must be an empty one. If not, delete all files and subfolders under it by using 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 cfa0:/mydir?[Y/N]:y
%Removed directory cfa0:/mydir.
undelete
Use undelete to restore a file from the recycle bin.
Syntax
undelete file-url
Views
User view
Default command level
3: Manage level
Parameters
file-url: Name of the file to be restored.
Usage guidelines
If another file with the same name exists in the same path, the system prompts you on whether to
overwrite the original file.
Examples
# Restore file a.cfg in directory cfa0: from the recycle bin.
<Sysname> undelete a.cfg
Undelete cfa0:/a.cfg?[Y/N]:y
.....
%Undeleted file cfa0:/a.cfg.