I'm not sure if this is the right Forum to post this but I'm looking for code which will scan a directory for files, get the file dates and delete the files based on x number of days.

Thanks