Recursively removing directories and/or files is always quicker this way! This particulary instance I needed to clean out the notes folder from an subversion repository (not necessarily necessary, but this can be applied wherever).
1 |
C:\Users\SloshDev> gci -include _notes -Recurse | %{ ri $_.FullName -recurse } |
or you could…
1 |
C:\Users\SloshDev> Get-ChildItem -include _notes -Recurse | %{ remove-item $_.FullName -recurse } |