C613-50057-01 REV A
Command Reference for AT-IX5-28GPX High Availability, High Power Video Surveillance PoE Switch
149
AlliedWare Plus™ Operating System - Version 5.4.5-0.x
F
ILE
M
ANAGEMENT
C
OMMANDS
RMDIR
rmdir
Overview
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] <
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. Refer to the
Introduction
.
Examples
To remove the directory
images
from the top level of the Flash filesystem, use the
command:
awplus#
rmdir flash:/images
To force the removal of directory
level1
containing subdirectory
level2
, use
the command:
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, 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.
<
name
>
The name and path of the directory.