We have a couple FTP servers here at my job and there are files which have been in these directories for years. The company policy stated that files older than 30 days must be deleted. Some people follow it and others don’t. So I decided to help them out.
This script will clean out all files, NOT FOLDERS, under the specified directory where the date created is older than the maximum age in days specified.