Delete a view
Checks the view's deletion impact first and refuses while blocking dependencies remain, or when the impact carries warnings and `confirmed` is not truthy; otherwise the view is removed. Deleting a shared view requires the `views:write` permission and a locked view is reserved to workspace owners and admins, while a personal view can be removed by its owner.
Authorization
apiKey Workspace API key created in Workspace settings → API keys. Scopes on the key bound what it can read and write.
In: header
Path Parameters
Query Parameters
Response Body
application/json
application/json
application/json
curl -X DELETE "https://example.com/v1/workspaces/string/databases/string/views/string"{ "data": { "id": "string", "workspaceId": "string", "databaseId": "string", "key": "string", "label": "string", "kind": "table", "placement": "database", "manifest": {}, "relationFieldId": "string", "ownerUserId": "string", "scope": "shared", "locked": true, "definitionVersion": 0, "createdAt": "string", "updatedAt": "string" }}{ "_tag": "ApiNotFound", "error": "not_found", "message": "That item does not exist, or this key cannot see it.", "status": 404}{ "_tag": "ApiNotFound", "error": "not_found", "message": "That item does not exist, or this key cannot see it.", "status": 404}Update a view's definition
Applies a change to the view's label, kind, manifest, scope, placement or source database. `expectedVersion` must match the view's current `definitionVersion`, so a stale edit is rejected as a conflict rather than overwriting a concurrent one. Editing a shared view needs the `views:write` permission, changing its placement also needs `resources:write`, and locking a view is reserved to workspace owners and admins.
Preview what deleting a view would affect
Returns the blocks, automations and other references that depend on the view, with an overall status of `safe`, `needs_confirmation`, or `blocked`. Read-only. Requires the `databases:write` permission.