Agus Makmun

I'm Programmer for Python & Django. I've made quite a few web apps, especially on Django.

Remove all files .pyc with recrusive method

19 Apr 2016 » python, bash

This method simple but important. Example in your project dir is like this:


Deleting the .pyc files one by one would be spending a lot of time. and you will be bored. There is sample how to handle it.

$ find your_dir -name *.pyc -delete

OR, if you work inside current directory.

$ find . -name *.pyc -delete