> ## Content Index
> Fetch the complete content index at: https://blog.tsd.digital/llms.txt
> Use this file to discover other available public pages before exploring further.

# Deleting SVN directories with PowerShell
- URL: https://blog.tsd.digital/deleting-svn-directories-with-powershell/
- Published: 2008-07-05T14:25:32.000Z
- Updated: 2008-07-05T14:25:32.000Z
- Author: Tim Gaunt
- Tags: PowerShell, Server Maintenance, Server Management, Web Development, The Site Doctor, #Import 2025-04-01 05:37

I've been re-working our new SVN structures recently as I'm now starting to understand how it works but one of the issues I had was trying to move the files/folders from a previous SVN directory.

PowerShell is great if you understand it (which I'm also learning) so I thought I would share this little script with you. It just loops through the files/folders and removes all those named \_svn. I found [this script from Wyatt Lyon Preul](http://renaissauce.com/thoughts/powershell-vs-command-prompt-on-deleting-svn-directories/?ref=blog.tsd.digital) and he complained about the length of the script, but from what I can tell you can condense that down to:

gci $folder -fil '\_svn' -r -fo | ? {$\_.psIsContainer} | ri -fo -r

I'm not that great with PowerShell yet but I hope that helps someone :)

WARNING: