How to delete all .svn sub folders recursively

Objective

To delete all .svn folders from all sub folders recursively.

Run the following command from terminal

find . -iname ".svn" -print0 | xargs -0 rm -r

Command explanation:

  • find – First portion of the command will search all .svn folder recursively.
  • print – Second portion of the command will print the list of folders retrieved from first portion.
  • rm – Third portion of the command will execute the delete action.
Updated: July 5, 2020 — 5:47 pm

1 Comment

Add a Comment
  1. We stumbled over here by a different web page and thought I should check things out. Keslie Robbert Weslee

Leave a Reply