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.