What is the Rmdir Command?:
Note: "Rmdir" and "Rd" may be used interchangeably.
A rmdir command is also available from the Command Prompt.
Rmdir Command Syntax:
rmdir [drive:] path
drive: = This is the drive letter where the new folder you want to remove is located.
path = This is the name of the folder you want to delete. This folder must be empty before the rmdir command will work.
Note: The rmdir command can only be used to remove folders inside the system folders of the current installation of Windows, in removable media, in the root folder of any partition, or in the local Windows installation source.
Rmdir Command Examples:
In the above example, the rmdir command is used to delete the miscfolder folder located inside the C:\Windows folder.
In this example, the rmdir command has no drive: or additional path information specified so the folder named myfolder is removed from the directory that you typed the rmdir command from.
For example, if you type rmdir myfolder from the C:\> prompt, the C:\myfolder folder will be deleted.
Rmdir Command Availability:
The rmdir command is available from within the Recovery Console in Windows 2000 and Windows XP.
Rmdir Related Commands:
The rmdir command is often used with many other Recovery Console commands.