delete_preview
Prepare deletion of an existing preview. Does not delete until its owner confirms in the browser holding the management key.
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": {
"preview_id": "<preview_id>",
"confirm_delete": "<confirm_delete>"
},
"name": "delete_preview"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| preview_id | Yes | Existing preview_id returned by AIfra. Do not invent it or pass a URL, alias, management key or source IP. | |
| confirm_delete | Yes | Set true only after the owner explicitly asks to delete this preview. The tool only prepares deletion; final confirmation requires the browser holding its management key. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | Yes | ||
| message | Yes | Next user action; preparation has not published or deleted anything. | |
| preview_id | Yes | AIfra preview identifier; never a management key. | |
| approval_url | Yes | Return to the user to open personally. This is not the published preview URL. Never approve it on their behalf. | |
| operation_id | Yes | Prepared operation identifier. | |
| approval_expires_at | Yes | Preparation expires after 2 hours. The 48-hour preview starts only after confirmation. |