01 / Identify the symptom
Were files not deleted, or is the space not visible yet?
| What you see | Check first | Next step |
|---|---|---|
| The target directory barely changed | Whether selected items were processed successfully, protected, skipped, or regenerated. | Review individual results and confirm you are measuring the same path again. |
| The target directory shrank, but available space barely increased | Trash, backups on the same volume, still-open files, snapshots, and other writes. | Pause related tasks and check whether the data moved elsewhere. |
| There are fewer chats, but the database file is no smaller | Whether the app only deleted records and free pages inside the database are waiting to be reused. | Check maintenance methods supported by the current version. Do not delete the database directly. |
| System Settings, Finder, and Terminal show different numbers | What is measured, units, purgeable space, and refresh times. | Compare before and after using the same tool, path, and disk volume. |
With AgentClean, first review the successful, failed, and skipped items from this cleanup. Do not treat scanned or selected capacity as space already freed. Investigate why an item failed before broadening the target to delete its entire parent directory.
02 / Measure again under the same conditions
Measure the directory and its volume together
Save your work, quit the relevant tools, and pause large downloads, builds, and file copies. Measure the same path using the same method as before cleanup. The example below uses Cursor’s application data directory. To check another tool, replace the first line and retain the quotation marks around the path.
cleanup_dir="$HOME/Library/Application Support/Cursor"
if [ -d "$cleanup_dir" ]; then
printf 'Directory usage (1,024-byte blocks):\n'
du -sk "$cleanup_dir"
printf 'Available space on the containing volume:\n'
df -k "$cleanup_dir"
else
printf 'Directory does not exist. Compare with your pre-cleanup records and measure an existing parent directory: %s\n' "$cleanup_dir"
fiUse du -sk to compare directory usage and df -k to compare the same Filesystem’s Available value. Divide the change in Available by 1,048,576 to get approximately the additional GiB. Finder’s GB and GiB are different units; do not compare their numbers without converting them.
If the target directory has been deleted, record that fact and query the volume using a parent directory that still exists. Without a pre-cleanup record, you cannot accurately reconstruct the amount freed this time. Record the current value for your next comparison. Permission errors mean the measurement is incomplete.
03 / Check where the files went
Moving, renaming, and copying may not free space
First check whether this cleanup’s items are still in Trash
After you manually move files to Trash, their space is reclaimed only when they are permanently deleted. Review the items from this cleanup and delete them once you are sure they are no longer needed. You do not have to empty all older files just for this cleanup. AgentClean bypasses Trash, so you cannot expect to recover its deleted content there.
A backup on the same volume only changes the location
Moving a directory to the desktop, renaming it with .bak, or leaving a complete copy on the same disk does not mean the data has left the disk. Back up content you need to keep to an external disk, verify that it is complete and usable, then decide what to do with the original files.
Cleaning a data disk or external disk affects that storage location. Even within the same APFS container, reports for different volumes cannot simply be added together. Always record the specific path and Filesystem.
04 / Check background activity
Is something still writing, or have caches been rebuilt?
Closing a desktop window does not necessarily stop CLIs, editor extensions, or background tasks. If a process still holds a deleted file open, its space may not be released until the file is closed. Save your work and quit the relevant programs normally first. Restart your Mac if needed, then measure again before reopening the applications.
Restarting an app, resuming tasks, downloading extensions, rebuilding indexes, or building projects can all create new data. If a directory shrinks and then grows when you use the tool again, first inspect what was added. Normal rebuilding does not mean deletion failed.
- Keep the tool closed and record the directory size and available space.
- Open only the tool you want to check, perform one normal operation, and measure again.
- If a directory keeps growing abnormally, record the tool version, directory, and growth period, then follow the tool’s troubleshooting process.
05 / Understand snapshots and databases
Two cases that deleting more files will not resolve
Time Machine snapshots and purgeable space
Local snapshots can retain older file versions, affecting the relationship between directory size and underlying space reclamation. Apple states that your Mac counts snapshot space as available storage and automatically deletes the relevant snapshots when needed. Finder, System Settings, and Terminal may therefore show different numbers. Do not treat all snapshot space as unusable.
First check whether you actually cannot save, copy, or install, rather than focusing on a single number. Time Machine system snapshots are different from code checkpoints and working-copy recovery snapshots in AI tools. Do not bulk-delete restore points or disable backups long-term just to increase the number immediately.
After chat deletion, space inside a database may await reuse
After records are deleted, a SQLite database may retain internal free pages for later reuse, so its file size may not decrease immediately. This does not mean you should manually delete the primary database. Nor should you remove its adjacent -wal or -shm files separately to force it to shrink.
Prefer history management or database maintenance features explicitly supported by your current tool version. Rebuilding a database may itself need extra space. A full SQLite rebuild can require additional free space of up to twice the original database size, so blindly trying generic commands on a nearly full disk is not appropriate.
06 / Confirm results and next steps
Check both space changes and retained content
- Confirm that the specific items you planned to delete were processed, with separate records of retained items and failures.
- Use the same method to compare the target directory and available space on the same volume. Record any snapshots, backups, or new writes.
- Reopen the tool and check that the chats, projects, configuration, and task outputs you need to keep are intact and usable.
- If you still cannot complete an operation that needs space, record the actual path, error message, and before-and-after measurements, then continue with the tool-specific troubleshooting guide.
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
Why does disk space not increase by the same amount when a cleanup tool reports success?
The amount of files successfully processed is not the same as the available space gained at that moment. Trash, backups, snapshots, shared data blocks, and background writes all affect the comparison. Check deletion results, directory changes, and available space on the containing volume separately.
Do I need to manually delete every Time Machine snapshot?
Usually not. Apple states that snapshot space counts as available storage and the system manages it as needed. Do not bulk-remove restore points to make numbers match. First confirm there is an actual shortage of space.
If a database is large, can I delete its adjacent WAL file?
Do not do this. A WAL file may contain transaction data not yet merged into the main database. Deleting it directly can damage consistency or lose content. Use maintenance methods supported by the tool’s current version.
If space increased after restarting, should I always restart?
Not necessarily. Restarting may close processes that still hold files open, but this does not explain every space discrepancy. Saving your work and quitting the relevant applications normally is usually the first step. Snapshots, databases, and backup locations still need separate assessment.