purge_fact
Destructively remove one fact by ID or all facts in a selected project/global scope. Requires confirm=true; use list_facts first to identify records before deletion.
Instructions
Destructively remove one fact by ID or all facts in an explicitly selected scope. Use list_facts first to identify intended records; use context only for reading. confirm=true is mandatory; false rejects without purging. Supply id or scope, not both; omitting both is rejected. Project or unscoped ID lookup requires initialization. The configured repository uses safe writes for recovery; inspect list_snapshots and list_audit_events rather than assuming the response contains a snapshot ID. Returns purged_count, affected_ids, and an audit marker. Repeating a purge may fail if the fact no longer exists.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "purge_fact"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Exact fact ID from list_facts. Selects one fact; omit when purging an entire explicit scope. Cannot be combined with scope. | |
| scope | No | Explicit project/global scope to purge in full when id is omitted. Cannot be combined with id; omitting both is rejected. | |
| confirm | No | Explicit destructive-operation authorization. Defaults to false, which rejects the operation without applying it. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||