C613-50100-01 REV C Command Reference for x930 Series 147
AlliedWare Plus™ Operating System - Version 5.4.6-1.x
FILE AND CONFIGURATION MANAGEMENT COMMANDS
RMDIR
rmdir
Overview This command removes a directory. This command only works on empty
directories, unless you specify the optional force keyword.
Syntax
rmdir [force] <name>
Mode Privileged Exec
Usage In a stacked environment you can use the CLI on a stack master to access
filesystems that are located on another stack member. See the Introduction on
page 114 for syntax details.
Examples To remove the directory “images” from the top level of the Flash filesystem, use the
command:
awplus# rmdir flash:/images
To create a directory called “level1” containing a subdirectory called “level2”, and
then force the removal of both directories, use the commands:
awplus# mkdir level1
awplus# mkdir level1/level2
awplus# rmdir force level1
To remove a directory called “test” from the top level of the Flash filesystem on
stack member 3, use the command:
awplus# rmdir awplus-3/flash:/test
Note that you must specify the filesystem (flash: in this example).
Related
Commands
cd
dir
mkdir
pwd
Parameter Description
force Optional keyword that allows you to delete directories that
are not empty and contain files or subdirectories.
<name> The name and path of the directory.