delete 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
find . -name "*.pyc" -exec rm -f {} \;
find . | grep -E "(__pycache__|\.pyc|\.pyo$)" | xargs rm -rf