File Management Commands
©2008 Allied Telesis Inc. All rights reserved.
Software Version 5.2.1
AlliedWare Plus
TM
Operating System Software Reference C613-50003-00 REV E
7.17
rmdir
This command removes a directory. The directory must be empty for the command to work
unless the optional
force
keyword is used to remove all subdirectories or files in a directory.
Syntax
rmdir [force]
<url>
Mode
Privileged Exec mode.
Examples
To remove the directory “images” from the top level of the Flash file system, use the
command:
awplus#
rmdir flash:/images
To force the removal of directory “level1” containing subdirectory “level2”, use the command:
awplus#
mkdir level1
awplus#
rmdir level1/level2
awplus#
rmdir force level1
Usage
In a stacked environment you can use the CLI on a stack master to access file systems that are
located on another stack member. In this case, when you enter the command, specify the stack
member’s file system by using the following syntax:
<hostname>-<member-id>/
(for example, awplus-1/ for a file or directory on stack member 1, awplus-2/ for member 2 etc).
Example
To remove a directory called "test" from the top level of the Flash filesystem in 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 any directories that are
not empty and may contain files or subdirectories.
<url>
The URL of the directory.