Deleting Queries
Deleting removes a query from the group. Before you delete, it is worth knowing what depends on the query so nothing breaks unexpectedly.
Deleting a query
In the queries list, click the red trash button (Delete) among the Operations of the query and confirm "Are you sure you want to delete this query?". A deleted query cannot be restored, and it frees its place in the query limit of the group's plan.
What deletion affects
When you delete a query, the following stop working:
- Its shared link and API endpoint — any external callers will start receiving errors.
- Any dashboard tiles that run the query.
- Any schedules attached to the query.
Deleting also removes the query's schedules, its version history and its entries in the logs. When no other query uses its database connection, the connection is deleted as well and disappears from the group's connections.
For this reason, deletion is best treated as permanent and deliberate.
Before you delete
- Check whether the query is shared or used by an API client. If so, update or remove those consumers first.
- Check whether it appears on a dashboard; remove the tile or replace it.
- If you only want to pause use temporarily, consider disabling sharing instead of deleting — that closes anonymous access while keeping the query.
Alternatives to deleting
- Clone then delete — if you are replacing a query, clone it, adjust the copy, repoint consumers, then delete the old one.
- Disable sharing — keeps the query but closes its shared link and its anonymous API access. Its API URL still answers callers who sign in with Basic Auth (see Calling a query that is not shared), and the MCP server and its REST API keep running it. If the query has an unpublished draft, the draft becomes the version that runs everywhere.
Permissions
Only the group's owner and members with the Editor right can delete queries. See Members and permissions.