Prev

Next

Welcome !Welcome ! I'm Subodh Manikoth, an entrepreneur and a web developer. When I decided to start a personal website, it was with a purpose in mind;  not merely to spout a bunch of loosely woven words with no coherent meaning. The purpose of this website is to give me a place to log things I don't want to forget, and to share these...

Read more

twitter

How to delete an entire directory via SSH

Category : Web Hosting

This is very commond knowledge. But I always end up googling for this command when I need to remove a directory with sub-directories/files from any of our servers. So I’m just writing down here to keep it handy and I hope it may be helpful for someone else there googling for the same.

# rm -rf YourDirectory

rm = remove / delete
-r = recursively deletes the directory and all files in it, including subdirectories
-f = will not ask for confirmation before deleting

Post a comment