Python3 project remove pycache folders and .pyc files

What is the BEST way to clear out all the __pycache__ folders and .pyc/.pyo files from a python3 project. I have seen multiple users suggest the pyclean script bundled with Debian, but this does not remove the folders. I want a simple way to clean up the project before pushing the files to my DVS.

I found the answer myself when I mistyped pyclean as pycclean:

        No command 'pycclean' found, did you mean:
         Command 'py3clean' from package 'python3-minimal' (main)
         Command 'pyclean' from package 'python-minimal' (main)
        pycclean: command not found

Running py3clean . cleaned it up very nicely.

From: stackoverflow.com/q/28991015

Back to homepage or read more recommendations: