Skip to content

Instantly share code, notes, and snippets.

@hbsdev
hbsdev / clean_py.sh
Last active November 11, 2025 17:52 — forked from joelverhagen/clean_py.sh
Recursively remove all .pyc files and __pycache__ directories in the current directory.
#!/bin/sh
# recursively removes all .pyc files and __pycache__ directories in the current
# directory
find . | grep -E "(__pycache__|\.pyc$)" | xargs rm -rf