how to remove all tpy errors only in a project python code example Example: remove all pycache files find . | grep -E "(__pycache__|\.pyc|\.pyo$)" | xargs rm -rf