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