Rwibby
Rwibby2w ago

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
Convex Bot
Convex Bot2w ago
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!
erquhart
erquhart2w ago
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.
Rwibby
RwibbyOP2w ago
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
erquhart
erquhart2w ago
run npx convex dashboard in your project directory
Rwibby
RwibbyOP2w ago
I have and this is what I see:
No description
Rwibby
RwibbyOP2w ago
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
erquhart
erquhart2w ago
TIL you can't use npx convex dashboard for self hosted which you apparently figured out Should be under settings oh hmm
Rwibby
RwibbyOP2w ago
The whole dashboard works in self-hosted though, its just the project managment that is not there
erquhart
erquhart2w ago
are the projects you see in the cli all self hosted or cloud? I would assume they're all cloud
Rwibby
RwibbyOP2w ago
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 project
erquhart
erquhart2w ago
Can 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
Rwibby
RwibbyOP2w ago
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
No description
Rwibby
RwibbyOP2w ago
Then if I select the first option I see the other test projects there:
No description
Rwibby
RwibbyOP2w ago
Even know their folders have been deleted
Rwibby
RwibbyOP2w ago
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
erquhart
erquhart2w ago
For anonymous login looks like project list is stored in ~/.convex/anonymous-convex-backend-state, you can edit that to remove projects from the list
Rwibby
RwibbyOP2w ago
Yup, that solved the problem. Thank you so much!

Did you find this page helpful?