In a Django project that I am working on I needed to remove all the pyc files from a project. cd into the directory where you want to remove the pyc files and do the following:
find . -name "*.pyc" -exec rm -rf {} \;
Have fun coding Python :-).