You can use find utility to delete files that are older than 'x' number of days. The find utility allows you to pass bunch of interesting arguments.