Every now and then I have to get my hands dirty in the Terminal and delete hidden files. As its not something I have to do often I tend to forget the actual commands so this a reminder.

To view all hidden files:

defaults write com.apple.finder AppleShowAllFiles TRUE
killall Finder

To hide the files:

defaults write com.apple.finder AppleShowAllFiles FALSE
killall Finder

To delete the .svn files:

Navigate to the folder. The easiest is to type “cd” and then to drop the folder into the Terminal window.

find ./ -name ".svn" | xargs rm -Rf