Delete Database Row
delete_database_rowDeletes a specific row from an AFFiNE database block using document, database block, and row block IDs.
Instructions
Delete a row from an AFFiNE database block.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"docId": "<docId>",
"databaseBlockId": "<databaseBlockId>",
"rowBlockId": "<rowBlockId>"
},
"name": "delete_database_row"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| docId | Yes | Document ID containing the database | |
| rowBlockId | Yes | Row paragraph block ID to delete | |
| workspaceId | No | Workspace ID (optional if default set) | |
| databaseBlockId | Yes | Block ID of the affine:database block | |
| expectedRevision | No | Optional read_doc revision of this primary document. Reject stale content before writing. Covers document content, not workspace metadata; requires all writers to share one MCP server. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| code | No | ||
| error | No | ||
| deleted | No | ||
| details | No | ||
| causeCode | No | ||
| retryable | No | ||
| rowBlockId | No | ||
| databaseBlockId | No | ||
| recoveryGuidance | No |