
C613-50186-01 Rev B
Command Reference for AR2050V
138
AlliedWare Plus™ Operating System - Version 5.4.7-1.x
F
ILE
AND
C
ONFIGURATION
M
ANAGEMENT
C
OMMANDS
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
You can use the CLI to access filesystems on a specific external memory device. See
the
on page 107 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
Related
Commands
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.