pyclean
Remove Python compiled bytecode files
TLDR
Remove bytecode files
SYNOPSIS
pyclean [options] [directory]
DESCRIPTION
pyclean removes Python compiled bytecode files (.pyc) and __pycache__ directories from a specified directory tree or Debian package. This is useful for cleaning up stale bytecode after Python version changes, reducing disk usage, or preparing clean source distributions.
The tool is part of Debian's Python packaging infrastructure and can target specific packages with the -p flag or recursively clean arbitrary directories. Since Python regenerates bytecode files automatically on import, removing them has no lasting effect beyond temporarily increasing the next import time.
PARAMETERS
DIRECTORY
Directory to clean.-p PACKAGE
Clean specific package.-v
Verbose output.-q
Quiet mode.
CAVEATS
Debian utility. Removes compiled Python files.
HISTORY
pyclean is a Debian utility for Python bytecode cleanup.
