Recursive Remove Files In Terminal

This is for or less a link for me because I forget how to do this often and have to scour the web

How to recursevely remove all .svn folders:

find . -name ".svn" -type d -exec rm -rf {} \;

How to recursively remove all files and folders starting with ._

find . -name "._*" -exec rm -rf {} \;

I got the original code from:
http://snippets.dzone.com/posts/show/2486

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <p> <pre>
  • Syntax highlight code surrounded by the {syntaxhighlighter SPEC}...{/syntaxhighlighter} tags, where SPEC is a Syntaxhighlighter options string or "class="OPTIONS" title="the title".
  • Lines and paragraphs break automatically.
  • E-Mail addresses are hidden with reCAPTCHA Mailhide.

More information about formatting options

CAPTCHA
Complete this form and then pat yourself on the back.