When directories or files become obsolete, we can use rmdir or rm to get rid of them.

Poof! We can use rmdir to remove emptydirectories andrm for files. By adding-rf to rm we can remove the directory with all the files.

Psst: we have to be careful when we remove things because there's often no way to recover them.

Almost, rmdir only works when the directory is empty.