Excessive Storage in MacBook

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

my macos storage getting full
cursor is using 40 plus GB how to clean it

Steps to Reproduce

work on a big project , multi project

Expected Behavior

it should use this much space

Screenshots / Screen Recordings

Operating System

Linux

Version Information

IDE: 3.23.23

Does this stop you from using Cursor

Sometimes - I can sometimes use Cursor

Hey @Akshat_Gupta, thanks for the report and the screenshot.

Almost all of that space is one file, `state.vscdb` (about 38 GB). It holds your local chat and agent history, and on heavy agent usage it can grow very large. The team is working on automatic cleanup for this. In the meantime, here’s how to shrink it:

  1. If the disk is full, free a few GB first (emptying the Trash is enough). The cleanup needs working space.

  2. Open the Command Palette (Cmd+Shift+P) and run Developer: Delete Old Chats… Enter a number of days. Chats older than that are deleted permanently. Wait for the “Deleted N chat(s)” notification.

  3. Quit Cursor with Cmd+Q (not just the window), reopen it, and check ~/Library/Application Support/Cursor/User/globalStorage/state.vscdb.

  4. If it’s still large, run Developer: GC Agent KV Blobs. This rewrites the file and can take several minutes. It needs free space of about twice the remaining file size, so wait until you have that room. Then quit with Cmd+Q again so the file can finish shrinking.

Don’t delete state.vscdb by hand while Cursor is open. That removes all local chat history. Let me know any follow-up questions!

Alredy tried both options but the difference was just 1-2 gbs

Ok! Couple more things we can check. This may seem like overkill, but please do the following:

  • Restart your Computer
  • Update and Restart Cursor
  • Run the delete old chats and the GC Agent KV blobs one more time.

Lmk if that helps at all! If not, we can dig further.

i dont have much space in my mac can i use my external ssd?

Sorry to butt in but holy…!

What the…

Dude!

They need to work a bit harder Kevin. Having a 42gb file created by a single application is absolutely absurd. There is no rhyme or reason for the storage of chats to be so excessive. This needs attention and should be a priority. I thought Codex was bad for having its merry way with my very expensive SSD…

:sweat_smile:

Well that made absolutely no difference to the file size. So how can we actually rid ourselves of this storage burden safely @kevinn?

Hi @MrCheese We’re still working on this, I’ll let you know when we have an update. It is a priority, so we should have something to share in the coming weeks.

BUMP.

Still no ability to clear these files…