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:
If the disk is full, free a few GB first (emptying the Trash is enough). The cleanup needs working space.
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.
Quit Cursor with Cmd+Q (not just the window), reopen it, and check ~/Library/Application Support/Cursor/User/globalStorage/state.vscdb.
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!
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…
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.