disktidy
A conservative, cross-platform command-line tool that analyzes where your disk space went and helps you safely reclaim it — from Docker, package manager caches, and other well-known space hogs.
It follows one rule, borrowed from good cleanup tools everywhere: looking is free and safe; anything destructive requires an explicit flag.
Why
Developer machines fill up in predictable ways: a Docker .vhdx that never
shrinks, gigabytes of npm/pnpm/pip cache, bloated .git histories, Windows
Store apps. disktidy finds those automatically and tells you exactly how
to get the space back — instead of you hunting through folders by hand.
Install
pip install disktidy
# or, for isolation:
pipx install disktidy
Run it from source without installing:
python -m disktidy report
Quick start
# Drive overview + biggest known consumers (this is the default command)
disktidy
disktidy report
# Biggest folders under any path (add --files for biggest single files)
disktidy analyze C:\Users\me --top 20 --files
# Docker: see what's reclaimable (dry-run — nothing is deleted)
disktidy docker
# Docker: actually prune junk AND compact the virtual disk
disktidy docker --apply --compact # (compact needs admin on Windows)
# Package caches: inspect, then clean
disktidy caches
disktidy caches --apply
# Machine-readable output for scripts/CI
disktidy report --json
Commands
| Command | What it does |
|---|---|
report (default) |
Per-drive usage + a table of the biggest known consumers, each with a description, a reclaim command, and a safety rating. |
analyze [PATH] |
Sizes every child folder of PATH and lists the largest; --files also finds the biggest individual files. |
docker |
Reclaims Docker space: prunes build cache, dangling images, and stopped containers, then optionally compacts the WSL2 .vhdx. |
caches |
Detects npm / pnpm / pip / yarn caches and cleans them on --apply. |
Safety
- Dry-run by default.
dockerandcachesonly report until you pass--apply. - Never touches your data. The Docker path removes build cache, dangling images, and stopped containers only — never volumes or tagged images.
- No symlink following when sizing directories.
- Compaction is opt-in (
--compact), Windows/WSL2-only, and requires an elevated (Administrator) terminal — it stops Docker and WSL first, then runsdiskpart. - No telemetry, no network calls.
Development
python -m pip install -e .
python -m pytest
python -m disktidy report
License
MIT
Metadata
Release files for disktidy 0.2.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| disktidy-0.2.3.tar.gz | 13.9 kB | Without provenance | Details for disktidy-0.2.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| disktidy-0.2.3-py3-none-any.whl | Python 3 | none | any | Details for disktidy-0.2.3-py3-none-any.whl |
Total release size: 30.4 kB
Release files / disktidy-0.2.3.tar.gz
| Download URL | disktidy-0.2.3.tar.gz |
|---|---|
| Size | 13.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
63f406907734a22b138eeeca92e5fbe585543ba820a40143a9343c133b605a2e
|
|
BLAKE2b-256 checksum How to use checksums |
1319d8351256ee1e431fd398295a64f2888081eae3f312c12b1078cb47b6dd64
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.6
|
Release files / disktidy-0.2.3-py3-none-any.whl
| Download URL | disktidy-0.2.3-py3-none-any.whl |
|---|---|
| Size | 16.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e6a67e7aa57604ae910a65c7560cd626a89edffcca2626ae671cace77be4366a
|
|
BLAKE2b-256 checksum How to use checksums |
ab40293d252c6826199a4ac691503a2c637e81a7aed9b98495deed6414bef081
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.6
|
Security for disktidy 0.2.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.