Quick post to help clear down lists of folders:

## Change CSV location ###
$Folders = 'C:\source\input\Folders.csv'
### Change to root of where the folders live ###
$location = 'C:\source\Input'

CD $location
Get-Content $Folders | ForEach-Object { $_.trim() } | Remove-Item -Force -Recurse

Leave a Reply

Your email address will not be published. Required fields are marked *