
Windows apps
Cleanup Crew
A Windows app that shows, as a tree, what can be deleted to free disk space, and deletes only what is ticked.
- When
- Sep – Nov 2026
- Status
- In personal use
- Built with
- C#.NET 10WPFPythonOpenSSHxUnit
Cleanup Crew is a Windows desktop tool with two tabs. Server lists what can be cleared on a Linux server over SSH: the Nextcloud trash (which can also be restored), old file versions, Docker build cache and unused images, logs and the package cache, plus a read-only disk overview. This PC lists what Claude Code sessions and their tools leave in the Windows temp folder.
The need
A small shared server slowly fills with trash, file versions, build cache and logs, and a development PC fills its temp folder. Cleanup Crew replaced a script and its scheduled tasks with one window that shows every size before anything goes, and never touches what it does not recognise.
What was built
- A tree of everything deletable, with sizes and dates on every row, tri-state ticks, and a confirmation that names every item before anything is deleted, followed by a before-and-after report.
- A server half written as one Python standard-library script, sent over SSH standard input on every call, so nothing is ever installed on the server; every destructive action re-checks its targets on the server at the moment it acts.
- Nextcloud trash and versions handled through Nextcloud's own PHP API, with restore as well as delete, so its database stays in step with the disk.
- An allowlist for the temp folder: only items matching a known fingerprint can be deleted, a session's scratch folder only once the session is no longer live, and anything unknown or uncertain is kept and reported.
- An evening size check, run by a scheduled task, that measures the server without deleting anything and shows one Windows notification; clicking it opens the Server tab.
- More than 400 xUnit tests, plus a Python unittest suite for the server script's guards.
What was hard
- Nextcloud's PHP API, run without loading its apps, registers no trash backend, so a delete silently skips the trash and is permanent. The script now refuses to run without one; and because the usual listing calls also write to Nextcloud's file cache, listing reads the cache interface only.
- Docker space that does not come back: deleting a container log frees nothing, because the daemon keeps appending to the deleted file, so logs are truncated to zero instead. In the build cache a parent record with a child is never freed, so children are pruned first until a pass frees nothing, and a Docker restart is offered only for an idle, childless leftover.
- On .NET 10, the recursive directory delete throws on a junction when not elevated and the recursive enumeration follows junctions, while development sessions link shared dependency folders into their worktrees. Temp-folder deletes go through a link-safe layer that removes links as links and never recurses through them, and re-reads each file's own timestamps at delete time, since NTFS directory listings stay stale while a file is held open.