# How to safely reduce a 237 GB state.vscdb with only 46 GB free?

**URL:** <https://forum.cursor.com/t/how-to-safely-reduce-a-237-gb-state-vscdb-with-only-46-gb-free/177244>\
**Category:** Help\
**Tags:** performance, chat\
**Created:** [November 4, 2026, 8:50am UTC](https://forum.cursor.com/t/how-to-safely-reduce-a-237-gb-state-vscdb-with-only-46-gb-free/177244 "2026-11-04T08:50:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![MRC1](https://avatars.discourse-cdn.com/v4/letter/m/278dde/32.png) [@MRC1](https://forum.cursor.com/u/MRC1)\
**Post date:** [November 4, 2026, 8:50am UTC](https://forum.cursor.com/t/how-to-safely-reduce-a-237-gb-state-vscdb-with-only-46-gb-free/177244/1 "2026-11-04T08:50:23Z")

</div>

**Title: How to safely reduce a 237 GB state.vscdb with only 46 GB free?**

I’m using Cursor 3.28.7 on Windows.

My state.vscdb is approximately 237 GB, and I have only 46 GB of free disk space.

I have no external drive.

Is there an officially supported way to reduce the database size without losing active Agent conversations, checkpoints, or workspace history, and without requiring hundreds of GB of temporary space?

I have not run GC, VACUUM, or manual database modifications.

---

<div class="post-metadata">

**Author:** ![mohitjain](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/mohitjain/32/100229_2.png) [@mohitjain](https://forum.cursor.com/u/mohitjain)\
**Post date:** [November 4, 2026, 12:28pm UTC](https://forum.cursor.com/t/how-to-safely-reduce-a-237-gb-state-vscdb-with-only-46-gb-free/177244/6 "2026-11-04T12:28:01Z")

</div>

At ~237 GB with only ~46 GB free, there’s no supported way to shrink it in place. The command that actually reclaims space (`Developer: GC Agent KV Blobs` in the Command Palette) rewrites the whole database and needs roughly double its size in free disk, so it won’t run until there’s much more space free. The growth itself is an issue we’re tracking.

Given your constraints, I’d do this:

1. Save anything you want to keep - open those chats, use the `...` menu and choose Export. The files are tiny.
2. If you can free up (or add) enough disk, or point Cursor’s data folder at a drive with more room via the `--user-data-dir <path>` launch flag, then run `Developer: GC Agent KV Blobs` and let it finish. This keeps your history.
3. If you can’t free that much space, the only way to reclaim it now is to reset the database. This removes the chat/agent history stored in it and signs you out (your login lives in the same file). Fully quit Cursor, then in `%APPDATA%\Cursor\User\globalStorage\` rename (don’t delete) `state.vscdb`, `state.vscdb.backup`, `state.vscdb-wal`, and `state.vscdb-shm` to `.old`. Relaunch, sign back in, confirm everything works, then delete the `.old` files. Renaming instead of deleting gives you a rollback.
