How to remove all *.pyc files from a project with Bash

  • ┬áTo remove all “*.pyc” files from your project is a one-liner:

It is a recursive command that will follow all sub-directories and delete *.pyc files from the whole directory tree. So, make sure that you are at the top directory before issuing the command:

find . -name "\*.pyc" -delete
  • DONE!

Leave a Reply