rm

Sub Folders

To remove all files with the pyc extension in all sub-folders:

find . -name \*.pyc -exec rm {} \;