How to delete Python .pyc and .pyo files on Ubuntu 14.04
I just realized today that Ubuntu has a command called pyclean already installed by default that will recursively delete all .pyc and .pyo files.
For example, to recursively delete .pyc and .pyo files from the current working directory, you can do:
pyclean .
If you’re not on Ubuntu, you can run this command instead:
find . -name “*.pyc” -delete