rmdir
To remove one or more empty directories from the specified file system, use the rmdir command in boot
loader mode.
rmdir filesystem:/directory-url...
Syntax Description
Alias for a file system. Use usbflash0: for USB memory sticks.
filesystem:
Path (directory) and name of the empty directories to remove. Separate each
directory name with a space.
/directory-url...
Command Default
No default behavior or values.
Command Modes
Boot loader
Command History
ModificationRelease
This command was introduced.Cisco IOS XE 3.3SECisco IOS XE 3.3SE
Usage Guidelines
Directory names are case sensitive and limited to 45 characters between the slashes (/); the name cannot
contain control characters, spaces, deletes, slashes, quotes, semicolons, or colons.
Before removing a directory, you must first delete all of the files in the directory.
The device prompts you for confirmation before deleting each directory.
Examples
This example shows how to remove a directory:
Device: rmdir usbflash0:Test
You can verify that the directory was deleted by entering the dir filesystem: boot loader command.
Related Commands
DescriptionCommand
Displays the list of files and directories on the specified file system.
dir
Displays the list of files and directories on the specified file system.
dir
Command Reference, Cisco IOS XE Everest 16.5.1a (Catalyst 3650 Switches)
938
rmdir