SQL EDITOR - Private Queries Delete #47521
Replies: 3 comments 5 replies
-
|
Hey! There is no SQL command for this because Private Queries are stored as SQL Editor metadata, not as rows in your project database. The SQL Editor does support deleting multiple selected private queries at once:
The confirmation dialog should show the number of selected queries, so you should not need to delete all 449 one by one. If the current dashboard view does not expose multi-select clearly, try refreshing or switching to the latest SQL Editor interface. This is handled through the Dashboard UI, not through SQL or the CLI. |
Beta Was this translation helpful? Give feedback.
-
|
There's no SQL for this, because saved SQL Editor snippets don't live in your Postgres database — they're stored in the Supabase platform (per user), so there's no table you can If you want to bulk-delete them, script it against the platform content API. The dashboard itself issues a request like A proper bulk-delete option would be a good Feature Request. |
Beta Was this translation helpful? Give feedback.
-
|
There is no bulk-delete button in the SQL editor UI for private queries on the free plan, but you can remove them through the Supabase Management API. First, get your project ref and a personal access token from app.supabase.com/account/tokens. Then list your snippets: curl -s https://api.supabase.com/v1/projects/{project-ref}/snippets Delete each snippet by id: curl -X DELETE https://api.supabase.com/v1/projects/{project-ref}/snippets/{snippet-id} To delete all of them in one go with bash: IDS=$(curl -s https://api.supabase.com/v1/projects/{project-ref}/snippets Replace {project-ref} with your project reference (found in project settings). 449 queries will take about a minute to delete this way. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Trying to clean up Private Queries list inside the Supabase SQL Editor dashboard. I have around 449 queries and clear all these queries in one go. Is there any SQL query or delete option? My account is FREE
Beta Was this translation helpful? Give feedback.
All reactions