delete all pyc files code example
Example 1: remocve pyc files
find . -name "*.pyc" -exec rm -f {} \;
Example 2: remove all pycache files
find . | grep -E "(__pycache__|\.pyc|\.pyo$)" | xargs rm -rf
Example 3: remove all pyc files
find . -name "*.pyc" -exec rm -f {} \;