I believe you can use a bash script similar to the following, but you may need to set a flag from PHP so that cron running as root or admin has permission to delete them. Hope it helps-
#!/bin/sh echo "recursively removing .svn folders from" pwd rm -rf `find . -type d -name .svn`