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.

Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.