The del command allows recursive removal of specified files.
To delete all files ending in .tmp in the current directory and all subdirectories, use:
del /s *.tmp
Warning: Be certain you know exactly what you are doing before using the command. To be more careful, you can specify that the del command will prompt for confirmation before deleting each file:
del /s /p *.tmp