Find all files with the extension ".gz" in the current directory and its subdirectories, print the directory and filename of each file, sort the output, and then delete all of the files.
find . -depth -iname '*.gz' -printf '%h/%f\n' | sort | xargs rm -f