An AI agent workflow that safely deep-cleans ~45GB of Windows junk, developer caches, and old tools without touching personal data
My PC was running out of storage space, but doing a manual clean-up of hidden development caches (like npm, gradle, pip) and leftover Android SDKs takes forever. Normal disk-cleanup tools miss a lot of this heavy developer junk, but giving an AI full permission to run delete scripts on your hard drive is incredibly risky. I designed this highly targeted "Master Cleanup Prompt" that turns an AI agent into a Safe Storage Assistant. It specifically targets known massive cache folders and calculates their sizes using fast PowerShell scripts. Most importantly, it enforces hard "Read-Only" boundaries on personal folders (like Downloads/Documents), forcing the AI to list large files for human review before any deletion commands are authorized. Using this exact workflow, my AI assistant safely cleared out over ~45GB of space in just a few minutes!
Tech stack
- Gemini
Links
Prompt
I need to safely free up storage space on my Windows PC. Please act as a system cleanup assistant. Write and execute PowerShell scripts to analyze my storage, but you must follow these strict safety rules:
Step 1: The Safe-to-Delete Caches (Scan & Report) Check the size of the following common software caches and temporary folders. These are generally safe to delete, but you must still report their total sizes to me and wait for my approval before deleting anything:
npm-cache, pip\Cache, .gradle\caches, .m2\repository, Yarn\Cache, pnpm\store, .nuget\packages, .cargo\registry
Windows Temp folder (AppData\Local\Temp), Windows Crash Dumps, and the Recycle Bin.
IDE/Dev Caches (VS Code CachedData, JetBrains AppData, .android\avd, Android SDK System Images).
Step 2: Personal Files (Read-Only Review) For my Downloads, Documents, Pictures, and Videos folders, you are in READ-ONLY mode. You are strictly forbidden from deleting anything in these folders.
Run a scan to find any .zip, .rar, .iso, .exe, or .mp4/.mkv files larger than 100MB in my Downloads folder.
Present me with a numbered list of these specific large files.
Important Execution Rules: Do not run a recursive scan on my entir…
14 likes · 6 comments · 5 views
Comments (6)
the key here is the not touching personal data part if you can make the dry run and restore path obvious this becomes way less scary for normal users
<p>Finally! AI cleanup that doesn’t scare the hell out of me. The read-only boundaries on personal folders is smart.</p>
now THIS! this is a freaking build!, checking this out now! amazing job
<p>Love the safety-first approach. Most AI cleanup ideas feel risky — this one actually sounds responsible.</p>
<p>Super useful. Turning the AI into a ‘Safe Storage Assistant’ with human approval is genius. Nice build.</p>
this is crazy, good job