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

RM

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.

Processing…
Success! You're on the list.


Posted

in

by