Script to Delete Old Files

I am looking for a script that will connect to an FTP server I have and delete any files that are older than 30 days. I would like it to recursively search through the directories and delete the directories themselves if they are older than 30 days. Has anyone seen such a thing and can it be used with SmartFTP? Thanks!

You would have to license the SmartFTP FTP library and write such a specialized script on your own. The SmartFTP Client application cannot do that automatically.