How can I clear all history in Cursor at once

Right now I have to delete each chat history one by one. Is there a way to delete them all at once?

All the chats are stored here:

Do you know where this folder is located in Windows 11

%userprofile%\AppData\Roaming\Cursor\User\History

Try to back up the folder first then delete everything and see if it works.

I deleted the entire folder, but the history is still present in Cursor

Search for some of the chat titles inside the other folders.

This folder here contains all the chats with you and cursor under the state.vscdb

\AppData\Roaming\Cursor\User\globalStorage

This folder: \AppData\Roaming\Cursor\User\workspaceStorage contains all your projects with all the different chats.

I wrote a program that reads all the chats, but because the AI chat is stored in 1 file, I found it a challenge to extract the text to match with my projects, so I abandoned it.

Hey, all chat history is stored in this folder:

Windows: %APPDATA%\Cursor\User\workspaceStorage
macOS: ~/Library/Application Support/Cursor/User/workspaceStorage
Linux: ~/.config/Cursor/User/workspaceStorage

That isnt entirely right since its also stored here \AppData\Roaming\Cursor\User\globalStorage

Deleting chat history fixed the loading issue! Thank you!

Thanks, works on Linux. I just deleted the whole dir

There is also a way to do it directly from Cursor menu.
File → Open Recent → Clear Recently Opened