Skip to content
How it worksSafetyPricingQuestions
FR · Français Download
← Where AI coding agents store data on your Mac, and what is safe to delete

Cursor on Mac: what takes space and what you can remove

Last checked 14 October 2026

Cursor writes to ~/Library/Application Support/Cursor and ~/.cursor. Caches and logs are safe to delete. The chat database, User/globalStorage/state.vscdb, is what grows most: shrink it from the Command Palette, never delete it. Keep your settings, keybindings and mcp.json.

What Cursor stores on your Mac

Cursor is a fork of VS Code, so it writes in two places: ~/Library/Application Support/Cursor for the editor's caches, logs and state, and ~/.cursor for its extensions and agent files. Here is what each part is, and what removing it costs you.

PathWhat it isVerdictWhat you lose
Cache/, CachedData/, Code Cache/, GPUCache/Temporary files of the editorSafeNothing visible: Cursor recreates them
CachedExtensionVSIXs/Downloaded copies of extension installersSafeNothing visible: Cursor recreates them
logs/Cursor's internal logsSafeNothing visible
User/workspaceStorage/Per-project state of Cursor, one folder per project you openedReviewPast conversations for those projects may be lost
User/globalStorage/state.vscdbThe database that holds your chats and agent stateNever deleteChats stay stuck on "Loading Chat…"
User/globalStorage/state.vscdb.backupA fallback copy of that databaseReviewThe fallback copy only
~/.cursor/extensions/Your installed extensionsReviewThey would need to be reinstalled
User/settings.json, User/keybindings.json, ~/.cursor/mcp.jsonYour settings, shortcuts and MCP serversNever deleteYour setup

The paths in the first column are inside ~/Library/Application Support/Cursor unless they start with ~/.cursor.

What grows the most

The chat database is usually the surprise. User/globalStorage/state.vscdb keeps every conversation and agent step, and deleting a chat in the app does not always shrink the file. A user on the Cursor forum found 231 GB under ~/Library/Application Support/Cursor, 188 GB of it in that single file.

The other large items are User/workspaceStorage/, which gets a new folder for every project you open, and the editor caches.

To see it on your own Mac:

du -sh ~/Library/Application\ Support/Cursor/* ~/.cursor/* 2>/dev/null | sort -h | tail -10
du -sh ~/Library/Application\ Support/Cursor/User/{globalStorage,workspaceStorage} 2>/dev/null
ls -lh ~/Library/Application\ Support/Cursor/User/globalStorage/state.vscdb*

Nothing above deletes anything.

How to clean it by hand

Quit Cursor first. Cleaning files an open window is writing to can corrupt them.

Safe items can be deleted directly:

cd ~/Library/Application\ Support/Cursor
rm -rf Cache CachedData "Code Cache" GPUCache CachedExtensionVSIXs logs

The chat database: shrink it from inside Cursor rather than deleting it. Cursor's team recommends, in this order:

  1. Delete state.vscdb.backup in User/globalStorage/. It is a fallback copy.
  2. Open the Command Palette and run Developer: Delete Old Chats…, then choose a cutoff such as 30 days. This is what actually shrinks the file.
  3. Run Developer: GC Agent KV Blobs to compact what is left. If either command is missing, update Cursor.

Never delete state.vscdb itself: users who did found every chat stuck on "Loading Chat…", with no way back except restoring the file.

Workspace storage: each folder in User/workspaceStorage/ belongs to one project. Removing the folders of projects you no longer open frees space, but their conversations may be lost. Keep the ones for projects you still work on.

What you should never delete

User/settings.json, User/keybindings.json and ~/.cursor/mcp.json are your setup. User/globalStorage/state.vscdb is your chat history. Deleting ~/Library/Application Support/Cursor as a whole removes all of them, and deleting ~/.cursor removes your extensions and MCP servers.

Other agents follow the same pattern: see where AI coding agents store data on your Mac, or the guide to what is in ~/.claude if you also use Claude Code.

Doing it with Ouste

Ouste reads these folders, classifies every item as Safe, Review, Risky or Protected with the sentence that says what you lose, and puts anything you might regret in a 7-day quarantine you can restore in one click. Your settings, shortcuts and MCP configuration are never touched.

Questions

Is it safe to delete ~/Library/Application Support/Cursor?

No. It holds your settings, shortcuts and the database with all your chats next to the caches. Delete the cache folders and logs, never the whole folder.

Why is state.vscdb so big?

It stores every chat and agent step, and deleting chats in the app does not always shrink it. Run Developer: Delete Old Chats… then Developer: GC Agent KV Blobs from the Command Palette, and delete state.vscdb.backup.

Can I delete Cursor's workspaceStorage folder?

Only the folders of projects you no longer open. Each one holds that project's state, and its past conversations may be lost. Your code is not modified.

Will clearing Cursor's cache remove my settings or extensions?

No. Cache, CachedData, Code Cache, GPUCache and logs are recreated by Cursor. Your settings and extensions live in other folders.

Ouste does this for you. It finds what your agents leave behind, says what each item is and what you lose, and puts anything you might regret in a 7-day quarantine. Free to scan and clean.

Download Ouste

macOS 14 or later · Apple Silicon

Less noise. More control.

Product

  • How it works
  • Safety
  • Pricing
  • Questions

Information

  • Legal notice and terms
  • Privacy
  • Guides
  • contact@ouste.space

Language

  • Français
  • English
© 2026 Ouste. Published by Adeo Consulting, Paris. macOS 14 or later · Apple Silicon