Delete site design
templates_deleteDeletes global blocks, menus, mail forms and fields, site pages, informers and template backups, or restores a backup over the current templates. Cannot be undone.
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": {
"action": "<action>",
"site_id": "<site_id>"
},
"name": "templates_delete"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Global block id (synonym for gblock_id). | |
| pda | No | Mobile (PDA) version flag of a global block. | |
| action | Yes | Operation to run. Each oneOf entry describes one action and lists its parameters. | |
| confirm | No | Confirmation of this deletion. Not needed unless the server refuses the call because the site owner requires it; that refusal says what to do. | |
| menu_id | No | Menu id from menu_list. | |
| page_id | No | Site page id. Page 1 cannot be deleted. | |
| site_id | Yes | Site to change: site_id from list_sites. Required: the call works only on this site, whatever select_site chose. | |
| backup_id | No | Template backup id from list_backups. | |
| gblock_id | No | Global block id. | |
| informer_id | No | Informer id from informer_list. | |
| mail_form_id | No | Mail form id from mail_list_forms. | |
| mail_field_id | No | Mail form field id from mail_list_fields. |