107
rmdir
Use
rmdir
to remove a folder.
Syntax
rmdir
directory
Views
User view
Default command level
3: Manage level
Parameters
directory
: Specifies the name of the folder.
Usage guidelines
The folder must be an empty one. If not, delete all files and subfolders under it 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 flash:/mydir?[Y/N]:y
%Removed directory flash:/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
: Specifies the 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 whether to overwrite
the original file.
Examples
# Restore file
a.cfg
in directory
flash:
from the recycle bin.
<Sysname> undelete a.cfg
Undelete flash:/a.cfg?[Y/N]:y