How do I delete projects in convex CLI
Hey everyone, after running
npx convex dev
and after selecting top run convex without an account (locally) I'm prompted to select a project.
While experimenting with convex I've created many different projects that I no longer use. How would I go about deleting these projects so that they don't show up in the CLI anymore?
Also, what is the consequence of deleting a project, does the data get deleted along with it as well?
Thanks in advance!17 Replies
Thanks for posting in <#1088161997662724167>.
Reminder: If you have a Convex Pro account, use the Convex Dashboard to file support tickets.
- Provide context: What are you trying to achieve, what is the end-user interaction, what are you seeing? (full error message, command output, etc.)
- Use search.convex.dev to search Docs, Stack, and Discord all at once.
- Additionally, you can post your questions in the Convex Community's <#1228095053885476985> channel to receive a response from AI.
- Avoid tagging staff unless specifically instructed.
Thank you!
You can delete projects in the Convex dashboard. Data is deleted when you delete a project, and it will no longer show up in the cli.
Also note that you can type to search for an existing project in the cli, that can help when you have a lot of projects.
Where do I go to see my project in the Dashboard?I can't find my projects anywhere? I'm using the self-hosted version
run
npx convex dashboard
in your project directoryI have and this is what I see:

I have clicked on all the buttons in the view but I still don't see an option to delete the projects I have shown in the cli
TIL you can't use npx convex dashboard for self hosted
which you apparently figured out
Should be under settings
oh hmm
The whole dashboard works in self-hosted though, its just the project managment that is not there
are the projects you see in the cli all self hosted or cloud? I would assume they're all cloud
All self-hosted experiments
Like if I create a new folder somewhere today and run
npx convex dev
and setup a new project there in self-hosted mode, even if I delete this entire project the project name will still be suggested every time I run npx convex dev
to create a new projectCan you give a screenshot or copy the prompt you get that suggests the name? I thought we were talking about a list of projects to select when you do "existing project", but with self hosted you provide the project details via args or env vars
Sure. I've just created a new project following this guide: https://docs.convex.dev/quickstart/vue
And when I get to step number 3 and enter
npx convex dev
I see this:Vue Quickstart | Convex Developer Hub
Add Convex to a Vue project

Then if I select the first option I see the other test projects there:

Even know their folders have been deleted
I get the same experience if I follow this self-hosting guide: https://github.com/get-convex/convex-backend/blob/main/self-hosted/README.md
GitHub
convex-backend/self-hosted/README.md at main · get-convex/convex-b...
The open-source reactive database for app developers - get-convex/convex-backend
For anonymous login looks like project list is stored in
~/.convex/anonymous-convex-backend-state
, you can edit that to remove projects from the listYup, that solved the problem. Thank you so much!