01 / Ask three questions first
Consider purpose, recovery, and current tasks
- What uses this data? Identify the tool, project, or task it belongs to, so you do not also remove shared caches or another application’s data.
- How would you recover it after deletion? Distinguish automatic rebuilding, downloading again, restoring from backup, and cases where complete recovery is not possible.
- What is still using it? After the desktop app quits, CLIs, extensions, or automated tasks may still access the same data. Save your work and stop the relevant tasks normally first.
You can work in order of deletion cost: inspect caches that are clearly regenerable and logs no longer needed for troubleshooting first, then consider resources you can download again, and evaluate history and work outputs last. Keep items whose purpose is unclear. This is more reliable than deleting from largest to smallest.
02 / Compare data types
These names represent different kinds of content
| Data type | What it usually stores | What to confirm before acting |
|---|---|---|
| Interface, script, and rendering caches | Reusable data generated to load interfaces and resources. | Confirm the specific subdirectory contains data the tool can regenerate. Quit the app before cleaning it; the next initial load may be slower. |
| Runtime logs and diagnostic records | Execution details, errors, and troubleshooting clues. | Keep logs from the relevant period while investigating a problem. Do not treat session records as logs. |
| Extension dependencies, models, and installation resources | Programs, dependencies, and resources needed to run extensions or tools. | Downloading or installing again may be required, and immediate recovery may be impossible offline. Manage these through the original tool. |
| Chats, sessions, memory, and state databases | Conversations, task context, indexes, or user state. | Prefer the tool’s built-in management features. Exported text may not fully restore the original session. |
| Checkpoints, local history, and recovery backups | Materials needed to return to earlier code or states. | Deletion removes the corresponding rollback capability. Git may not contain those versions. |
| Working copies, attachments, and task outputs | Source code, dependencies, uploaded materials, documents, and deliverables. | Check unmerged changes, untracked files, and ignored files. Back up outputs you need to keep. |
| Configuration, authentication files, and keys | Login state, tool settings, and access credentials. | These are usually small and are not routine targets for freeing space. Do not publish their contents or clear them as caches. |
These categories help you decide; they do not replace instructions for a specific version. A single application data directory may contain several of these types. For example, Application Support can contain both caches and state you must keep.
03 / Common misjudgments
Four reasons something may look safe to delete
Its name includes cache, so delete it all
Some extension caches actually store dependencies required to run extensions. Deleting them may require reinstallation or interrupt active tasks. Read what the item is used for first; the folder name alone is not enough.
It is more than 30 days old, so it cannot be needed
Age can filter candidates, but it cannot determine the value of their contents. A task output from a month ago may be the final deliverable, and an old checkpoint may be the only way to roll back.
The code is in Git, so the entire working copy is safe to remove
A clean working tree does not mean commits have been pushed or merged. Untracked files, ignored local configuration, and generated deliverables may also be absent from Git. Before handling a working copy, check each of these and confirm they are saved elsewhere.
A backup is just a copy, so deleting it has no effect
Database backups and application restore points provide a chance to recover from failures. Being able to open the primary data today does not mean the backup will never be needed. Confirm your recovery needs before removing it and store copies you want to keep in a reliable location.
04 / A practical cleanup order
Start here if you want to keep chats and code
- Save files, stop agents and automated tasks, and quit the relevant desktop apps, CLIs, and extensions.
- Use the tool-specific guide to locate the exact cache or log subdirectories, then confirm their paths, purposes, and retention requirements.
- Start with caches and logs you clearly no longer need. Keep sessions, databases, checkpoints, configuration, and project files.
- Before cleaning history or working copies, make a backup and verify that it is usable, then use the management features provided by the tool.
- Handle one category at a time, record deletion results, and reopen the tool to confirm that the features and content you need still work.
Files manually moved to Trash can usually still be put back, and their space has not yet been reclaimed. Permanently delete the items only after confirming you no longer need them. AgentClean permanently deletes items you select and confirm. It bypasses Trash and has no built-in undo.
05 / Select from scan results
Treat candidates as a list that needs review
AgentClean groups candidates by tool and rule. Caution items are unchecked by default, but you still need to verify their purpose. If you select and confirm them, they will also be deleted. Add files or folders you need to keep to the protection list, then review your selection again.
The protection list excludes items from future cleanup; it cannot restore files already deleted. When a tool is marked as in use, save your work and quit it first. The absence of that notice does not guarantee that every CLI or background task has stopped.
Scan and review in one place
Review supported cleanup items together
AgentClean scans tool data on your Mac within its rules and groups candidates, sizes, and notes by tool. Keep important content first, then select the items you are sure you no longer need.
Scanning and review do not require a subscription. Cleanup requires an active subscription and permanently deletes files without sending them to Trash. Actual coverage depends on scan results; the projects, databases, and system snapshots discussed in this guide are not necessarily covered by AgentClean.
Stay tuned
AgentClean is currently available only for Mac. Other platforms aren’t available yet. Visit this site on a Mac to download.
View supported tools · See each tool’s coverage and what you need to keep.
Frequently asked questions
A few more things to check
Does cleaning only caches guarantee that chats will be unaffected?
You must first confirm that the specific path really contains regenerable caches. Do not empty an entire application data directory, workspace state, or database. Storage differs by tool and version, so the word cache alone cannot provide a universal guarantee.
Can I delete the original session after exporting a chat?
First confirm what the export includes and whether it can be imported again. A text export may omit attachments, task state, checkpoints, or data needed to resume the session. If you need full recovery, back up using a method supported by the tool.
Do I still need to review caution items if they are unchecked by default?
Yes. Leaving them unchecked by default is only a starting point. You should still confirm your current selection and protection settings. Caution items are also permanently deleted if you select and confirm them.
If caches reappear after cleanup, should I delete them again immediately?
Usually not. Applications generate the caches they need when you use them again. Repeated cleanup may increase loading or download costs. First watch for unusual ongoing growth, then decide whether action is needed.