Rmdir – Allied Telesis AlliedWare Plus Operating System Version 5.4.4C (x310-26FT,x310-26FP,x310-50FT,x310-50FP) User Manual
Page 174
File Management Commands
Software Reference for x310 Series Switches
7.28
AlliedWare Plus
TM
Operating System - Version 5.4.4C
C613-50046-01 REV A
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
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
Examples
To remove the directory images from the top level of the Flash filesystem, use the
command:
To force the removal of directory level1 containing subdirectory level2, use the
command:
To remove a directory called test from the top level of the Flash filesystem, in stack
member 3, use the command:
Note that you must specify the filesystem, (“flash:” in this example).
Related Commands
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.
awplus#
rmdir flash:/images
awplus#
mkdir level1
awplus#
mkdir level1/level2
awplus#
rmdir force level1
awplus#
rmdir awplus-3/flash:/test