How to delete an entire directory via SSH

July 12, 2016 0 Comments
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

Leave A Comment

To Top