The rmdir command is a Recovery Console command used to delete folders. "Rmdir" and "Rd" may be used interchangeably.
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 c:\windows\miscfolder
In the above example, the rmdir command is used to delete the miscfolder folder located inside the C:\Windows folder.
rmdir myfolder
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.
The rmdir command is available from within the Recovery Console in Windows 2000 and Windows XP.
The rmdir command is also accessible from the Command Prompt in any version of Windows but with different options and restrictions.
The rmdir command is often used with many other Recovery Console commands.

