Purging script

Hi,

Need to change the following command to also purge the child directories after /data/tmp within one command (recursively check for X number of days old files and purge accordingly)?
e.g. /data/tmp/a, /data/tmp/a/b, /data/tmp/log.

find /data/tmp -type f -mtime +7 -exec rm -f {} \;

Thanks
egls

The find command will, by default recurse into subdirectories. If you want, you can run 'ls -l' instead of 'rm -f' to check if it is indeed recursing.

It indeed recursive, Thanks so much