Using Bash:
find . -type d -name "__pycache__" -exec rm -r {} +Using PowerShell:
Get-ChildItem -Recurse -Directory -Filter __pycache__ | Remove-Item -Recurse -ForceUsing Command Prompt:
for /d /r . %d in (__pycache__) do @if exist "%d" rd /s /q "%d"