Is there a way to bulk delete?
Right now I have to click the trash bin button one by one and it will take a long time to clear everything.
Hey, unfortunately, there’s no other way at the moment, but you can rename or move your project, and then all the history will disappear.
Basta você renomear a pasta do seu projeto para qualquer nome e então os chatos irá apagar sozinho depois de alguns dias o cursos exclui eles
So when I renamed it and changed the project name back within a few minutes, the chat history still existed. Only after some time did the original chat history get deleted. My question is, how long do I have to wait specifically?
Hey, you don’t need to revert to the previous name in this case. If the name of your project is important to you, you can move it to another location on your computer, or delete the entire history manually, or reinstall Cursor.
How to delete entire history manually? I know there is a delete feature on the chat window but the ide hangs up before I can open it. Thanks.
You can delete the history only in the chat window, or you can also use the method I mentioned above.
Actually this happens so much, I wrote a cript to automate deleting history…
#!/bin/bash
CURSOR_WORKSPACES=~/Library/Application\ Support/Cursor/User/workspaceStorage
# Function to display help
show_help() {
echo "Usage: $0 [parameter]"
echo "If parameter s a project name (len!=32) - will search for the workspace id"
echo "If parameter is a workspace id (len==32) - will rename state.vscdb to state.vscdb.bad"
echo "If parameter is ALL it will list all workspaces (not clean anything)"
}
# Check if no parameters are provided
if [ $# -eq 0 ]; then
show_help
exit 0
fi
# Get the parameter
param=$1
if [[ "$param" == "ALL" ]]; then
pushd "${CURSOR_WORKSPACES}" > /dev/null
grep -r folder */workspace.json | sed -E 's/^([a-f0-9]{32}).*\/([^\/]+)"$/\1 -> \2/'
popd > /dev/null
else
if [ ${#param} -eq 32 ]; then
# Rename the file
if [ -f "${CURSOR_WORKSPACES}/${param}/state.vscdb" ]; then
mv "${CURSOR_WORKSPACES}/${param}/state.vscdb" "${CURSOR_WORKSPACES}/${param}/state.vscdb.bad"
echo "Renamed state.vscdb to state.vscdb.bad in ${param}"
else
echo "Error: state.vscdb not found in ${param}"
exit 1
fi
else
# Search for the parameter
pushd "${CURSOR_WORKSPACES}" > /dev/null
grep -r "/$param\"$" */workspace.json | sed -E 's/^([a-f0-9]{32}).*\/([^\/]+)"$/\1 -> \2/'
popd > /dev/null
fi
fi```