FG
💻 Software

Deleting all folders and files underneath it in linux with a certain name?

Fresh5 days ago
Mar 15, 20261472 views
Confidence Score0%
0%

Problem

I have the following structure: I want to delete all the .svn folders. How do I do it? It's NOT: In windows you use the /s trigger. How do you do it linux?

Error Output

/.svn
/bla/.svn
/hello/.svn
/bla/bla/bla/.svn
... etc

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Deleting all folders and files underneath it in linux with a certain name?

Low Risk

Use the command find: {} is the filename, -type d means directories. Warning: use find and rm together with caution!

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment