macOS cleanup guides / Windsurf cleanup

How to clean Windsurf data on Mac safely

A long-running Windsurf workspace can accumulate caches and diagnostics alongside valuable project context. This guide shows how to measure that storage, clear selected caches and check your work afterward.

Keep Cascade memories separate from caches

The memories directory can hold useful project context. Back it up and review it separately; clearing editor caches does not require deleting memories or the entire .codeium/windsurf folder.

Scan and review with AgentClean

Scan this tool in AgentClean, expand the results and compare paths, sizes and caution notes. Select only items you no longer need; leave uncertain items unselected and protect important paths with a whitelist.

Protect your work first

Scanning and review are free. Permanent cleanup requires an active subscription.

01 / Protect your work first

Protect your work first

Keep source repositories, User settings, extension data and workspace state. Check unsaved work and any Cascade context you still need before quitting Windsurf.

  1. Save your work and back up settings and local files you cannot recreate. Check that you can open the backup before making changes.
  2. Finish active AI tasks, builds and downloads. Quit the app and related background processes so they stop writing to these folders.
What to keep

The memories directory can hold useful project context. Back it up and review it separately; clearing editor caches does not require deleting memories or the entire .codeium/windsurf folder.

02 / Separate caches from useful local data

Separate caches from useful local data

Windsurf is an AI coding editor. Its local data includes regenerable caches, diagnostic files and remembered context for Cascade. Clearing caches does not require deleting the whole Application Support folder or your source repositories.

Separate caches from useful local data
CategoryExample locationsImpact and conditions
Editor and web caches~/Library/Caches/Windsurf · ~/Library/Caches/com.exafunction.windsurf · ~/Library/Application Support/Windsurf/Cache · ~/Library/Application Support/Windsurf/Code Cache · ~/Library/Application Support/Windsurf/GPUCache · ~/Library/Application Support/Windsurf/Service Worker/CacheStorageCaches can be rebuilt; the next launch or page load may take longer. The bundle cache uses an age condition of seven days. Only the named cache subfolders and Service Worker/CacheStorage are candidates inside Application Support.
Logs and crash reports~/Library/Logs/Windsurf · ~/Library/Application Support/Windsurf/Crashpad/completed · ~/Library/Application Support/Windsurf/Crashpad/pendingRemoving diagnostics can make a current support investigation harder. Crashpad candidates must be at least one day old. Keep relevant logs until a problem is resolved.
Cascade memories~/.codeium/windsurf/memoriesRemoving memories can lose remembered project context. The memories folder is a caution item. It is not interchangeable with a cache, and this rule does not claim to clear all Cascade conversation history.

Paths identify candidate locations, not instructions to delete entire folders. A missing folder is normal for some versions.

03 / Measure the actual disk usage

Measure the actual disk usage

In Finder, choose Go → Go to Folder (⇧⌘G) and open one verified path at a time. Get Info shows its size. The Terminal commands below only measure directories and free space; they do not delete files.

Read directory sizes and the home volume’s free space
du -sh "$HOME/Library/Application Support/Windsurf" "$HOME/Library/Caches/Windsurf" "$HOME/Library/Logs/Windsurf" "$HOME/.codeium/windsurf/memories"
df -h "$HOME"

A missing folder is normal for some versions. A permission error is not a measurement of zero. Application Support totals include useful data as well as caches, so they are not a promise of recoverable space. Do not add parent and child sizes together.

04 / Clear selected caches in Finder

Clear selected caches in Finder

  1. After quitting the app, open its Application Support folder with Finder’s Go to Folder. Confirm the tool name and the exact folder before proceeding.
  2. For a manual cache cleanup, select only Cache, Code Cache or GPUCache if present. Move one selected cache folder to Trash, keeping the parent folder and other data intact.
  3. Reopen the app, load a project or task, and check that settings and integrations work. If something fails, quit the app and restore the removed folder from Trash or your backup.
  4. Trash still uses disk space. Empty it only after checking its contents and confirming that the app works; that removal is permanent.
Keep Cascade memories separate from caches

Use the manual steps only for named cache folders. Keep logs needed for troubleshooting, and review memories through Windsurf’s memory controls. The bundle cache has a seven-day age condition and Crashpad a one-day condition in AgentClean; those conditions do not make every file in the parent folder disposable.

05 / Reopen the app and check free space

Reopen the app and check free space

Open your usual workspace and check extensions, settings and Cascade context. If memories were deliberately removed, useful context may need to be added again. Cache cleanup does not claim to erase all Cascade conversations.

The first launch can be slower while caches rebuild. Repeat the measurements on the same volume; retained Trash, APFS snapshots and files still open in a process can delay a visible increase in free space. Rebuilding caches can consume some of the reclaimed space again.

06 / Tool coverage and official references

Tool coverage and official references

Scan and review with AgentClean

See what is taking up space

Scan this tool in AgentClean, expand the results and compare paths, sizes and caution notes. Select only items you no longer need; leave uncertain items unselected and protect important paths with a whitelist.

Scanning and review are free. Cleanup requires an active subscription and permanently deletes files without sending them to Trash. Coverage depends on the installed version, age conditions and the scan results.

View supported tools · See each tool’s coverage and what you need to keep.

Frequently asked questions

A few more things to check

Will this delete my code?

The listed rules target specific local tool data. Keep your source repositories and review every selected path. Never select a project folder merely because it is large.

Can I delete all of .codeium/windsurf?

No. Only its memories subfolder is listed here as a caution candidate. Removing the parent directory can affect other local state.

Are Cascade memories the same as caches?

No. Memories can contain useful project context. Back them up or leave them unselected if you still need that context.

Why does the cache return?

Windsurf recreates caches during normal use. Regrowth is expected, and the amount reclaimed depends on actual local files.