Delete a collection
delete_collectionOn one site of the account, named in site. Removes an empty collection. One that holds pages stays: move its pages out (update_post_settings with collection "") or delete them, the deepest first.
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": {
"site": "<site>",
"collection": "<collection>"
},
"name": "delete_collection"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | Yes | The site to work on, as list_sites names it | |
| collection | Yes | Its id, slug or name |