SandboxesSandbox TemplatesTemplate management

Delete an organization template

Delete a template, every version it holds, every tag that names one and its build records, a running build included. The reply counts the build records it destroyed. That count is the part nothing else records: a build's status, its error and the resources it ran on live in that row alone, and its log stays in storage for seven days with nothing left to address it by. Read stats.builds.total on the template first to see the number before you delete. It is refused with 409 while a sandbox records any of those versions, and the refusal names up to 5 of them and counts the rest. A paused sandbox counts, and so does one whose teardown has not finished. There is no override: delete those sandboxes first. This cannot be undone: archive the template instead to refuse a create from it and keep every version as it is. Requires the organization admin or owner role.

DELETE
/v1/orgs/{org}/templates/{name}

Delete a template, every version it holds, every tag that names one and its build records, a running build included. The reply counts the build records it destroyed. That count is the part nothing else records: a build's status, its error and the resources it ran on live in that row alone, and its log stays in storage for seven days with nothing left to address it by. Read stats.builds.total on the template first to see the number before you delete. It is refused with 409 while a sandbox records any of those versions, and the refusal names up to 5 of them and counts the rest. A paused sandbox counts, and so does one whose teardown has not finished. There is no override: delete those sandboxes first. This cannot be undone: archive the template instead to refuse a create from it and keep every version as it is. Requires the organization admin or owner role.

AuthorizationBearer <token>

API key starting with tektona_. Create one at app-dev.tektona.ai under API Keys.

In: header

Path Parameters

org*string

Organization name

name*string

Template name

Lengthlength <= 80

Response Body

application/json

application/problem+json

curl -X DELETE "https://example.com/v1/orgs/string/templates/string"
{  "builds": 12}