Find all files with the extension ".gz" in the home directory and its subdirectories up to 5 levels deep, that have not been modified in the last 5 days, and delete them.
find ~/ -maxdepth 5 -iname \*.gz -mtime +5 -exec rm {} \;