Find all directories with the name ending in ".tmp" in the current directory and its subdirectories (up to a maximum depth of 2) and delete them.
find ~ -maxdepth 2 -type d -name "*.tmp" -exec rm -f {} \;