Of course I could do all that with my OS’s built in tools on the GUI. But I was just keen how to do using command line tools… 😉
Hit cmd + space to launch Spotlight, type terminal and hit enter.
Erase a File
Erase a Directory
rm -R MyDirectorysName
-R is needed as an argument to erase a directory and all of it’s content