I’m a heavy user of cursor. I try to start new conversations when I start a new topic with my agents - so I have LOTS of archived chats. Since I don’t go back and revisit them (relevant status is stored in tickets), I was wondering how I can either remove them, have them auto-expire after a certain amount of time, or, in general, just recover my disk space?
Delete a single chat, not just archive it:
In the editor window, click the three dots on the chat in History, then click Delete. This removes messages, checkpoints, and diffs, not just the archive flag.
Bulk cleanup by age, works everywhere:
Open Command Palette with Cmd+Shift+P or Ctrl+Shift+P
Run Developer: Delete Old Chats… It’ll ask for a cutoff in days, delete everything older, and run VACUUM on storage.
Then run Developer: GC Agent KV Blobs. This cleans up orphaned blob storage.
After these two, state.vscdb usually gets noticeably smaller.
Important: don’t delete state.vscdb manually via the file system. It breaks history and chats can get stuck on Loading Chat.
Auto-expire or retention:
There’s no setting for this yet. Only manual cleanup via the commands above. It’s in the backlog, but I can’t share an ETA.