You can use a FileSet to define the files that you want to delete, and then use the FileSet Delete action that performs the delete. For the folders, you’ll need to use the Delete Directory action.
Is there a way to filter for all directories that are of the format ‘.svn’ anywhere in the project, and the recurse and delete the all (and the files inside of them?).
Easy… or so I thought… but it turns out it’s a scenario that is not easy to deal with! I ended up adding a new option to Fileset patterns to make this doable.
Install the build above. Then add a “Fileset Define” action, and set the base directory to the root of your project. Set the filespect to .svn on the include pattern, and turn on Recursive and “Directories Only”
Add a project variable, call it FolderName (or whatever you like), then add a FileSet Iterator action and set the variable to your FolderName Variable. Under the Iterator (as a child action), add a “Delete Directory” action, and specify %FolderName% (or whatever your variable is called) as the directory to delete, and turn on “Delete Tree” on the action.