How can I recursively delete all files & directories that match a certain pattern? e.g. remove all the ‘.svn’ directories and the files they contain?
(Sadly DOS only)
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Since you’re looking for a DOS solution, last week’s post was almost identical and the consensus was:
Command line tool to delete folder with a specified name recursively in Windows?
or
Actually, SVN also gives you the option to export a working directory without the .svn/_svn directories.
Afterthoughts, three years later: I think the reason people end up needing to recursively delete the .svn/_svn folders is because they’ve directly copied their local working copy to a new location in order to do a folder comparison of their modified version compared to a clean export, i.e. after something goes awry with the modified local working copy. (At least that’s why I’ve needed it. It’s definitely easier/faster to just use ‘svn export’ when that’s possible.)