Delete multiple files or folders input from a CSV file (Powershell)

*** THIS SCRIPT IS PROVIDED WITHOUT WARRANTY, USE AT YOUR OWN RISK ***
This script will delete one or more files or folders based on input of a list from a CSV file. I wrote this to work in conjunction with this script: http://www.signalwarrant.com/2013/04/20/search-file-structure-for-a-file-or-file-type-and-put-the-results-in-a-csv-file-powershell/.

Pretty simple but very effective.

 

 

Leave a Reply

  1. Thank you for the script that you have provided. How do I export the results into an Excel spreadsheet and highlight them in green once the files have been deleted from a csv list in PowerShell?

  2. How do I export the results into an Excel spreadsheet and highlight them in green once the files have been deleted from a csv list in Powershell?