SyntaxFix
Write A Post
Hire A Developer
Questions
Why not just use rm -rf __pycache__? Run git add -A afterwards to remove them from your repository and add __pycache__/ to your .gitignore file.
rm -rf __pycache__
git add -A
__pycache__/