Please run the script as System User or Logged in User (Needs permission to remove the files detected)
This script will delete the files and folder from a folder if it exceeds more than the given number of days from the given Directory.
path = r'c:\users\ac\downloads\michael' # Provide the path of the folder.
days=396 # Provide the number of days
Comments