Systematically locate and safely remove application caches and data across standard system locations before deletion.
Overview
Before deleting large files or uninstalling applications, scan multiple standard cache and data locations to ensure thorough cleanup and prevent orphaned files consuming disk space.
Standard Cache & Data Locations to Check
macOS
~/Library/Caches/
~/Library/Application Support/
~/Library/Preferences/
/Library/Caches/
~/Downloads/ (for installer artifacts)
Linux
~/.cache/
~/.config/
~/.local/share/
/var/cache/
/tmp/ and /var/tmp/
Windows
%APPDATA%\ (roaming)
%LOCALAPPDATA%\ (local)
%TEMP%\
%ProgramFiles%\ (application directory)
%ProgramData%\
Steps
Identify the application - Note the exact app name and vendor
Search systematically - Use find/search commands to locate directories and files matching the app name across standard locations
Review before deleting - List all found items to confirm they belong to the target application
Backup if needed - Consider archiving important data before deletion
Remove in order - Delete cache first, then application support/config, then the main application
Verify cleanup - Search again to confirm no orphaned files remain
Example Command (macOS/Linux)
find ~/ -type d -name "*appname*" 2>/dev/null
find ~/.cache -type f -name "*appname*" 2>/dev/null
Tips
Use case-insensitive searches to catch variations in naming
Check file modification dates to identify which caches are actually used
Some applications store data in non-obvious subdirectories
Run searches with error suppression (2>/dev/null) to avoid permission warnings
1---2name: scan-and-cleanup-caches3description: scan-and-cleanup-caches4---5# scan-and-cleanup-caches67Systematically locate and safely remove application caches and data across standard system locations before deletion.89## Overview10Before deleting large files or uninstalling applications, scan multiple standard cache and data locations to ensure thorough cleanup and prevent orphaned files consuming disk space.1112## Standard Cache & Data Locations to Check1314### macOS15- `~/Library/Caches/`16- `~/Library/Application Support/`17- `~/Library/Preferences/`18- `/Library/Caches/`19- `~/Downloads/` (for installer artifacts)2021### Linux22- `~/.cache/`23- `~/.config/`24- `~/.local/share/`25- `/var/cache/`26- `/tmp/` and `/var/tmp/`2728### Windows29- `%APPDATA%\` (roaming)30- `%LOCALAPPDATA%\` (local)31- `%TEMP%\`32- `%ProgramFiles%\` (application directory)33- `%ProgramData%\`3435## Steps36371. **Identify the application** - Note the exact app name and vendor382. **Search systematically** - Use find/search commands to locate directories and files matching the app name across standard locations393. **Review before deleting** - List all found items to confirm they belong to the target application404. **Backup if needed** - Consider archiving important data before deletion415. **Remove in order** - Delete cache first, then application support/config, then the main application426. **Verify cleanup** - Search again to confirm no orphaned files remain4344## Example Command (macOS/Linux)45```bash46find ~/ -type d -name "*appname*" 2>/dev/null47find ~/.cache -type f -name "*appname*" 2>/dev/null48```4950## Tips51- Use case-insensitive searches to catch variations in naming52- Check file modification dates to identify which caches are actually used53- Some applications store data in non-obvious subdirectories54- Run searches with error suppression (`2>/dev/null`) to avoid permission warnings
Run npx skillmds@latest add claudiawong522/scan-and-cleanup-caches in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
scan-and-cleanup-caches It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Capability flags: docs only. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
claudiawong522 (@claudiawong522) published this skill. Their other Agent Skills are listed on their SkillMD profile.