I\'m trying to write a python script to delete all files in a folder older than X days. This is what I have so far:
import os, time, sys path = r\"c:\\user
This deletes files older than 60 days.
import os directory = '/home/coffee/Documents' os.system("find " + directory + " -mtime +60 -print") os.system("find " + directory + " -mtime +60 -delete")