Delete a Folder Linux Command

In this post, I will show you how to delete a folder and all the content in it using a one-liner code.


This following code, will delete the folder, all the content and will not ask to confirm.

rm -r -f 3.Repo/

The command deletes a folder called 3.repo and I am running CentOS 7.7.

Success! You're on the list.