Delete page data entries
delete_page_dataRemove entries from a page's collection by up to 20 docIds or by a time range, with either bound alone, to clean up spam or moderate content. Deleted entries cannot be restored.
Instructions
Delete one entry, or entries in a time range. From one list (collection) of an owned HTML page or site: up to 20 entries by docIds (moderation), or every entry created between after and before, either bound alone is enough (spam cleanup). Deleted entries cannot be restored. Returns the number deleted.
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": {
"collection": "<collection>"
},
"name": "delete_page_data"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Publication ID | |
| after | No | ISO 8601 time: entries created after it | |
| before | No | ISO 8601 time: entries created before it | |
| docIds | No | Entry ids from the listing, 1-20; instead of a time range | |
| manageUrl | No | The page's private management link (https://brewpage.app/manage/...#k=...); stands in for namespace, id and ownerToken. | |
| namespace | No | Publication namespace | |
| collection | Yes | List (collection) name | |
| ownerToken | No | Owner token from create. Default: env BREWPAGE_OWNER_TOKEN (local server only). |