How to remove svn folders over FTP on Windows hosting

I've accidentally copied a large part of a folder tree from my SVN working copy to my shared Windows web host via FTP.

The site is now littered with .svn directories and and I need some way of cleaning them. The only access I have to the server is via FTP, or by running a script on the server.

Does any one have a script which can be run remotely to remove the files over FTP from my development machine (any language Windows/Linux is fine) or a script in ASP, or PHP I can run directly on the Windows server to remove these directories?


How about:

for /f “tokens=* delims=” %%i in (’dir /s /b /a:d *svn’) do ( rd /s /q “%%i” )

taken from

also in regard to your statement further above try running it in php with the following

echo `for /f “tokens=* delims=” %%i in (’dir /s /b /a:d *svn’) do ( rd /s /q “%%i” )`;


 ? SVN files edited thru FTP, How do I fix the edited files so they work thru SVN again?
 ? FTP up site using without uploading .svn files tortoise svn
 ? SVN Pre-commit Hook FTP Upload in Windows
 ? Export SVN repository over FTP to a remote server
 ? Can Subversion replace FTP?
 ? Svn status output to remote server by ftp?
 ? Webpage doesn't update after changing files via FTP
 ? How can I remove a CMS system(php-fusion) from an FTP server?
 ? Find coordinates of every link in a page
 ? Find coordinates of every link in a page