V2
Delete Database
Move a database to trash and return the soft-deleted database state.
Delete Database
Use Case
Use this endpoint to move a database to trash. This is a soft delete.
Endpoint
| Item | Value |
|---|---|
| Method | DELETE |
| Path | /v2/databases/:database_id |
| Request body | None |
| Returns | database |
| Scope | databases.write |
Permissions
Requires databases.write and access to the target resource.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
database_id |
string | Yes | Database ID. |
Response Example
{
"object": "database",
"id": "66666666-6666-4666-8666-666666666666",
"created_time": "2026-04-09T08:00:00.000Z",
"last_edited_time": "2026-04-09T09:30:00.000Z",
"created_by": {
"object": "user",
"id": "bbbbbbbb-bbbb-4bbb-8bbb-bbbbbbbbbbbb"
},
"last_edited_by": {
"object": "user",
"id": "bbbbbbbb-bbbb-4bbb-8bbb-bbbbbbbbbbbb"
},
"title": [
{
"type": "text",
"text": {
"content": "Task Board",
"link": null
},
"plain_text": "Task Board",
"href": null
}
],
"description": [],
"icon": null,
"cover": null,
"parent": {
"type": "page_id",
"page_id": "55555555-5555-4555-8555-555555555555"
},
"properties": {
"Name": {
"id": "title",
"type": "title",
"name": "Name"
},
"Status": {
"id": "16161616-1616-4616-8616-161616161616",
"type": "select",
"name": "Status"
}
},
"in_trash": true,
"is_inline": false,
"url": "https://buildin.ai/database/66666666-6666-4666-8666-666666666666"
}
Behavior
- The endpoint performs a soft delete by moving the target to trash.
- The response returns the target object or a deletion state with
in_trash: true. - Use the corresponding update endpoint when you need to explicitly set trash state as part of a larger update.
Errors
401 unauthorized: invalid or expired token.403 forbidden: missing scope or no access.404 not_found: target resource does not exist.