Cursor - Optimized chat list data

Feature request for product/service

Cursor IDE

Describe the request

When I use it, I find that there are too many directories and too much data in the chat boxes, and there is still a lot. I often delete them.
However, I discovered that some of the no-longer-existing directories still exist in the list of the agent window.
Then, it doesn’t support the function of selecting and deleting. [So frustrating!]
Then I created a deletion script:
The script will delete all chat data. Use it carefully. There are also parameters for specific execution.

clean_script.7z (6.9 KB)

If there are any issues, feel free to make the necessary corrections. O

Hey, thanks for the feature request. You can fix part of this right now:

  1. Stale directories that no longer exist: in the Agents Window, right-click the group header workspace or repo, then pick Remove from Sidebar. This clears stuck groups without touching the database.
  2. Bulk delete old chats: open the Command Palette with Cmd+Shift+P or Ctrl+Shift+P, then run Delete Old Chats. It deletes a batch based on age.

Multi-select or per-chat Delete right in the Agents Window list is not there yet. It only has Archive right now. It is a common request and it is on the radar, but I can’t share an exact timeline. Related threads where you can upvote: Allow single click deleting chats from chat history panel and Agent Side Bar and Restore Delete option alongside Archive in chat history.

About the script, be careful with direct edits to state.vscdb. If a deletion goes wrong, the space in the DB might not be fully freed, so it is best to make a backup first. Let me know if the built-in options helped.