Purge Fork Copies
purge_fork_copiesRemove page copies left on merged or archived forks without touching live pages or fork records. Use dry_run first to preview items before deleting.
Instructions
Delete the page copies still attached to a merged or archived fork. Requires admin role.
Merges clean up after themselves since v7.4; forks merged before that kept their copies. Live pages are never touched, and the fork record is kept. Active forks are refused.
Use dry_run: true first to see the count and the list of {id, full_path}. Returns the number deleted and writes an audit log entry.
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": {
"fork_id": "<fork_id>"
},
"name": "purge_fork_copies"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | If true, return the count and the list of {id, full_path} without deleting anything | |
| fork_id | Yes | ID of a merged or archived fork,required |