Delete a preview
delete_previewDELETE a preview explicitly - previews are part of the testing lifecycle, NOT permanent artifacts: the base-app OWNER tears a preview down IMMEDIATELY, without waiting for its TTL sweep. preview_app is the id returned by preview_ref ({owner}/{base}-preview-{short}). Authorized by owning the base app (a foreign-namespace id is refused); idempotent (deleting an already-gone preview succeeds); the TTL sweep composes (a deleted preview is skipped). Returns {PreviewDeleted:{preview_app}}.
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_app": "<preview_app>"
},
"name": "delete_preview"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| token | No | fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused | |
| preview_app | Yes |