Angel Cruz
Angel Cruz

Reputation: 11

How can I delete multiple folders with by name using Powershell?

I have a list of folders that have to get deleted in a directory and I'm trying to purge them all at once. Looking to be able to delete the folders in a directory based on the list of names

Upvotes: 0

Views: 741

Answers (1)

Martin Brandl
Martin Brandl

Reputation: 58931

Take a look at the Get-ChildItem and Remove-Item cmdlet.

Upvotes: 1

Related Questions