Powershell Script – Delete listed files

Some easy-peasy script that will permanently delete files, that are listed in the array: cls; $FilePaths = New-Object System.Collections.ArrayList $FilePaths.add("C:\myfile1.txt") | Out-Null $FilePaths.add("C:\myfile2.txt") | Out-Null $FilePaths.add("") | Out-Null $FilePaths.add("") | Out-Null $FilePaths | Foreach-Object { […]