By: Arjan Sturing
PowerShell script for removing files in folder and if chosen subfolders based on pattern Use this script at your own risk!
Usage is as follows:
- Start script
- Choose directory
- Enter pattern by example: - Copy for files with - Copy in filename or *.txt for al .txt files
- Choose the amount of days for the maximum age of the files
- Choose if you want to delete files in subfolders
- Check the list of found files
- Choose if you want to delete the files mentioned on the list
Automate the World #PowerShell