How to remove a entire directory, files and sub directories using mac terminal

June 15, 2009    mac terminal one line command remove entire directory one command ssh

Terminal Mac

Simply use the following command:

rm -rf /sites/yoursite/http2

This will force remove all files and folders under the toplevel folder you specified so be warned!

You can also use rm -ri which will prompt you at every folder and file.

At the prompts simply enter 'n' for no and 'y' for yes.

blog comments powered by Disqus