disk-cleanup
/disk-cleanup
Reclaim space on the Windows C: drive by clearing regenerable caches (npm, pip, temp, Windows Update, puppeteer, driver leftovers). Use when the system drive is low on space, when an installer needs room to extract, or when the user asks to free up / clean up disk space. Scans and reports first, never deletes without confirmation.
- Author
- DaraBoth ↗
- Repository
- skilljmskill ↗
- Licence
- MIT
- Last repository change
- 09.11.2026
Assessment and security
- Files in this package
- 2
- Scripts
- 1
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 09.11.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
- 1 scripts in this package. Review them before installing, as Claude may execute them.
Scripts: cleanup.ps1
What it does and when to use it
Reclaim space on the Windows C: drive by clearing regenerable caches (npm, pip, temp, Windows Update, puppeteer, driver leftovers). Use when the system drive is low on space, when an installer needs room to extract, or when the user asks to free up / clean up disk space. Scans and reports first, never deletes without confirmation.
Original author description
Reclaim space on the Windows C: drive by clearing regenerable caches (npm, pip, temp, Windows Update, puppeteer, driver leftovers). Use when the system drive is low on space, when an installer needs room to extract, or when the user asks to free up / clean up disk space. Scans and reports first, never deletes without confirmation.
How it works
- Non-negotiable rules
- Workflow
- Options
- Targets
- Notes
SKILL.md preview
---
name: disk-cleanup
description: Reclaim space on the Windows C: drive by clearing regenerable caches (npm, pip, temp, Windows Update, puppeteer, driver leftovers). Use when the system drive is low on space, when an installer needs room to extract, or when the user asks to free up / clean up disk space. Scans and reports first, never deletes without confirmation.
---
# Disk Cleanup
Frees space on the system drive by removing caches that regenerate on their own.
Only known cache folders are targets; your projects and documents are never touched.
## Non-negotiable rules
1. **Always scan before deleting.** Report the table, get an explicit yes, then clean.
2. **Never delete an unrecognised folder.** Anything not on the allowlist is reported
as `ask` risk and left alone until the user says what owns it.
3. **Protected folders are never touched:** `Temp\claude` and `.cache\claude` hold the
active session's scratchpad and background task output. Deleting them breaks the
running session. The script excludes them by name.
4. **No wildcards over user data.** Targets are an explicit allowlist of cache paths.
## Workflow
### 1. Scan
```powershell
powershell -ExecutionPolicy Bypass -File "$env:USERPROFILE\.claude\skills\disk-cleanup\cleanup.ps1"
```
Prints every target that exists with its size, risk level, and what the consequence
of deleting it is. Nothing is modified.
### 2. Report
Show the user a table: target, size, and the real consequence. Call out anything
with a side effect rather than burying it, for example:
- `puppeteer` — re-downloads Chromium on the next browser-automation run
- `npm-cache` / `pip-cache` — next install is slower once, then normal
- `winupdate` — some files stay locked without admin; those are skipped
Separate `safe` totals from `ask` totals. Give the projected free space after.
### 3. Confirm, then clean
Dry run first if there is any doubt:
```powershell
powershell -ExecutionPolicy Bypass -File "$env:USERPROFILE\.claude\skills\disk-cleanup\cleanup.ps1" -Mode Clean
```
Then, only after the user agrees:
```powershell
powershell -ExecutionPolicy Bypass -File "$env:USERPROFILE\.claude\skills\disk-cleanup\cleanup.ps1" -Mode Clean -Execute
```
Reports free space before, after, and the delta.
### 4. Verify
Confirm the reclaimed figure matches roughly what was projected. If it falls well
short, locked files were skipped, usually the Windows Update cache without admin.
Say so rather than reporting the projection as though it happened.
## Options
| Flag | Effect |
|---|---|
| `-Mode Scan` | Measure only (default) |
| `-Mode Clean` | Delete, but only together with `-Execute` |
| `-Execute` | Required to actually delete anything |
| `-Only a,b` | Restrict to specific target ids |
| `-Skip a,b` | Exclude specific target ids |
| `-IncludeAsk` | Also clean `ask`-risk targets. Only after the user confirms each one. |
> **Array parameters need `-Command`, not `-File`.** With `powershell -File`, a
> comma list arrives as a single string and `-Only` / `-Skip` silently match nothing
> (the run reports 0.00 GB and does nothing). Invoke them like this instead:
>
> ```powershell
> powershell -ExecutionPolicy Bypass -Command "& '$env:USERPROFILE\.claude\skills\disk-cleanup\cleanup.ps1' -Mode Clean -Execute -Only @('npm-cache','user-temp')"
> ```
## Targets
**Safe** (regenerable, no decision needed):
`npm-cache`, `pip-cache`, `winupdate`, `windows-temp`, `user-temp`, `puppeteer`,
`nvidia-extract`, `nvidia-extract2`, `nvidia-ota`, `recycle-bin`
`nvidia-ota` is the usual culprit when C: fills up suddenly. The NVIDIA App
pre-downloads each new driver into
`C:\ProgramData\NVIDIA Corporation\NVIDIA App\UpdateFramework\ota-artifacts`,
which can grow by several GB and fill the drive to 0 bytes free.
Check it first on any "disk is full" report.
**Ask** (needs a human decision, never cleaned by default):
`windows-old`, plus any unrecognised child of `~\.cache` discovered at scan time.
## Notes
- Run without admin. Locked files are skipped rather than failing the run.
- `nvidia-extract` (`C:\NVIDIA`) is driver-installer leftovers, safe to remove once
the driver install has finished.
- If C: is low specifically because an installer needs extraction room, clean first,
then confirm free space before telling the user to run the installer.
Files in this package (2)
- SKILL.md 4 KB
- cleanup.ps1 6 KB
Versions
| Repository | Score | Licence |
|---|---|---|
| This page · DaraBoth/skilljmskill | 98 | MIT |
| yonatangross/orchestkit | 100 | MIT |
| glebis/claude-skills | 100 | MIT |
| inline-chat/inline | 100 | AGPL-3.0 |
| hakula139/plugins | 100 | MIT |
| moonlight-lupin/agent-skills | 100 | MIT |
| mtarcure/claude-vibe-squad | 100 | MIT |
| sasugadayo/disk-cleanup-skill | 98 | MIT |
| SamueleGuerrini/disk-cleanup-skill | 93 | MIT |
Database snapshot: 13.11.2026 · package version 39bf08a18dcc (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100windows-disk-cleanup
Safely reclaim disk space on Windows when the C drive is full or running low (triggered by 清理C盘, C盘满了, 磁盘空间不足, 清理缓存, 电脑变卡想清空间, free up space, disk cleanup, low disk space). Uses a whitelist-driven catalog, a hard denylist enforced in code, and requires explicit per-item user… - 88windows-c-drive-cleanup
Safe Windows C: drive space analysis and cleanup workflow. Use when a user asks Codex to scan, diagnose, clean, free space, remove large files, identify uninstall candidates, or troubleshoot low disk space on a Windows system drive, especially C:\\. Emphasizes read-only analysis… - 100genizah
Safely free up disk space on a Mac, Windows PC or Linux machine, step by step, with the user's approval before anything is deleted and an extra warning before anything important goes. Use this whenever the user says their computer, laptop or disk is full, low on storage,… - 100clean-dev-caches
Free disk space on a developer machine by clearing regenerable caches (npm, Bun, Yarn, pnpm, Homebrew, pip, uv, Go, Gradle, CocoaPods, Xcode DerivedData, old Playwright/Puppeteer browsers, VS Code and JetBrains caches, Docker build cache), stale project build outputs (.next,… - 100yc-disk-cleanup
Reclaim disk space on a developer Mac or Linux machine without losing data — measure what is actually large, classify each item by what deleting it costs, ask per item, then clean only what was named through each tool's own command. Use when the disk is full or nearly full, the… - 90free-up-disk-space
Free up disk space on the user's Mac safely with DiskSpace AI. Use when the user says their Mac or disk is full, asks what's taking up space, can't install a macOS update, wants to clean caches, Xcode DerivedData, simulators, Docker, node_modules or AI models, or asks whether a…