Удалить все файлы Pycache
find . | grep -E "(__pycache__|\.pyc|\.pyo$)" | xargs rm -rf
Vast Vole
find . | grep -E "(__pycache__|\.pyc|\.pyo$)" | xargs rm -rf
find . | grep -E "(__pycache__|\.pyc|\.pyo$)" | xargs rm -rf
a = 10
print a
del a
print a ## throws an error here because it's been deleted already.