How To Delete Folder with Powershell?

How can I recursively delete folder with a specific name with PowerShell?

Tone at Stack Overflow Visit the source

Was this solution helpful to you?

Other answers

I tend to avoid the -Include parameter on Get-ChildItem it is slower than -Filter. This is what I would use: get-childitem . -include .svn,_svn -recurse -force | remove-item -recurse -force or if typing this at the prompt: ls . -inc .svn,_svn -r -fo | ri -r -fo

Keith Hill

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.