delete all pyc files in directory code example Example: remove all pyc files find . -name "*.pyc" -exec rm -f {} \;