Cursor_agent create-chat and how to delete old chats

Hi,

When using cursor_agent CLI and creating chats like “cursor_agent create-chat” Is there an equivalent “delete-chat” option? How do I delete old chats using the CLI?

CLI Version 2026.03.30-a5d3e17

thanks
Prashanth

Hi @Prashanth_Buddhala,

There isn’t a delete-chat CLI command at the moment. Here are two ways to manage old chats:

  1. Interactive picker: Run cursor agent ls to open the chat list, then press Backspace or Delete on a selected chat to remove it

  2. Manual deletion: Chats are stored on disk at ~/.cursor/chats/<workspace-hash>/<chat-uuid>/. You can remove chat directories directly with something like rm -rf ~/.cursor/chats/<hash>/<uuid> (make sure the agent isn’t actively using that chat)

Note that chats are scoped by workspace directory, so you’ll only see chats created from the same working directory when using cursor agent ls.

Thanks @mohitjain. That works for now. Could you confirm if all of the chat data is stored only locally at that / location and nothing on the cloud in the user’s data?

Yes, the chat data at ~/.cursor/chats/<workspace-hash>/<chat-uuid>/ is stored only locally on your machine. There is no cloud sync or backup of those files.

Of course, during an active chat session, conversation context is sent to Cursor’s servers for model inference (this is inherent to how AI-powered chat works). With Privacy Mode enabled, zero data retention is enforced with our model providers, and none of your code is trained on. For full details on data handling, see Data Use & Privacy Overview and Privacy & Data Governance.