Delete Blob
delete_blobRemoves a stored blob from an AFFiNE workspace, optionally permanently bypassing recoverable deletion when the file must be purged.
Instructions
Delete a blob from AFFiNE workspace storage. Set permanently only when the blob should bypass recoverable deletion.
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": {
"workspaceId": "<workspaceId>",
"key": "<key>"
},
"name": "delete_blob"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Blob key returned by upload_blob or AFFiNE document metadata. | |
| confirmKey | No | Required when permanently=true and must exactly match key. | |
| permanently | No | If true, permanently delete the blob instead of marking it deleted. | |
| workspaceId | Yes | AFFiNE workspace id that owns the blob. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| key | No | ||
| code | No | ||
| kind | No | ||
| error | No | ||
| status | No | ||
| deleted | No | ||
| details | No | ||
| success | No | ||
| causeCode | No | ||
| retryable | No | ||
| permanently | No | ||
| workspaceId | No | ||
| recoveryGuidance | No |