DiskPilot
Free open-source Windows disk cleanup tool with a smart 4-tier confidence system, duplicate finder, and piracy detection. Built in Python.
- Client
- Open Source
- Live site
- github.com/tehgee42/DiskPilot
Tech stack:
- Python
- CustomTkinter
- SQLite
- PyInstaller
Problem
Windows’ built-in disk cleanup is slow, superficial, and never shows why a file should be deleted. Third-party tools are either filled with ads, cost money, or delete files without explanation — making users nervous about losing something important.
Solution
DiskPilot scans all drives and categorizes files into four confidence tiers, so you never delete something you’ll regret:
- SAFE — Guaranteed safe to delete (temp files, cache, logs)
- RECOMMENDED — Very likely redundant (old installers, duplicates, torrents)
- SUGGESTED — Probably fine, but worth checking (old archives, backups)
- ASK — Only you know if you need them (old media files, abandoned projects)
Key Features
- Smart scanning — Catalogs all files in a SQLite database with automatic skipping of developer directories (
node_modules,.venv,__pycache__, etc.) - Duplicate finder — Finds identical files across drives and suggests keeping the newest
- Version detection — Finds older versions of the same installer and flags them
- Piracy detection — Flags known cracks, keygens, and activators as security risks
- Drive organization — Assign purposes to drives (Games, Projects, Media) and find misplaced files
- 3-layer system protection — System files are protected during scanning, analysis, and deletion
- Recycle bin by default — Nothing is permanently deleted unless you actively choose it
Technical Architecture
The application is built with a clear separation of concerns:
- UI layer — CustomTkinter + ttk.Treeview with dark theme
- Scanner — Filesystem walker with intelligent filtering and categorization
- Smart Analyzer — 4-tier confidence engine with duplicate/version/piracy detection
- Database — SQLite with WAL mode and batch inserts for performance
- Organizer — Deletion queue with recycle bin support
Result
A free, open-source tool that gives Windows users full control over disk cleanup with transparent explanations for every file. MIT license, available on GitHub.