top of page
  • Writer's pictureTroy Web Consulting

SVN obstructed? How to remove all .svn folders

I recently committed a rather large code base to SVN. To my knowledge, the code base had not been in SVN before. Turns out I was wrong. Upon attempting to commit the working copy, I kept seeing directories flagged as “obstructed.” I tried an SVN clean, but that didn’t help. The problem was a bunch of legacy .svn folders in various directories. My fix was to fire up terminal and delete all of the .svn folders in one fell swoop. Here’s how to do it.

  • Start Terminal.

  • Change directory to your code base. This is really important. Otherwise you could unintentionally delete .svn folders you would rather keep. $ cd /Library/WebServer/targetdirectory

  • I like to list, just to make sure I'm in the right place. $ ls

  • Find and delete the .svn files $ find ./ -name ".svn" | xargs rm -Rf

Done. Now you should be able to commit without issue.


bottom of page