Delete a knowledge entry
delete_knowledgeDeletes a knowledge entry: it leaves every list and search at once. The delete is restorable: it is saved as a new version, every earlier version stays, and restore_knowledge_version brings the entry back. Send the newest version number you read; if someone saved a newer version since, nothing is deleted and the answer is stale with the newest number.
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": {
"knowledge_id": "<knowledge_id>",
"expected_version": "<expected_version>"
},
"name": "delete_knowledge"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | No | The project the entry is in. May be left out: the entry's id finds its own project or the workspace. | |
| knowledge_id | Yes | The entry (list_knowledge and search_knowledge give ids). | |
| workspace_id | No | Workspace id from whoami; omit when there is one. | |
| expected_version | Yes | The entry's newest version number when you read it (read_knowledge or list_knowledge_versions gives it). If someone saved a newer version since, nothing changes and the answer is stale with the newest number: read the entry again first. |