How to delete all pyc files from a project

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 :-).

This entry was posted in Common. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.