Tutorial: Introduction to the Command Line

3. Drives and Directories

3.4. Delete directories

Now we're going to delete the directory called Peter.

1. First move one directory up, so you're back in the root of the C-Drive. Type:
cd .. <ENTER>

2. Remove the directory Peter by typing:
rd Peter <ENTER>

rd means "remove directory".

3. List the directory to check if Peter has been removed.

Note that you can only remove a directory in this way if it is empty!