Unlink Template or Stack
curl --request DELETE \
--url https://api.vertracloud.app/v1/workspaces/{id}/templates/{template_id} \
--header 'Authorization: Bearer <token>'const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.vertracloud.app/v1/workspaces/{id}/templates/{template_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.vertracloud.app/v1/workspaces/{id}/templates/{template_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.vertracloud.app/v1/workspaces/{id}/templates/{template_id}"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}Apps & Databases
Unlink Template or Stack
Moves a private template, or a stack, from a workspace back to your account. Owner only. Doesn’t delete it.
DELETE
/
v1
/
workspaces
/
{id}
/
templates
/
{template_id}
Unlink Template or Stack
curl --request DELETE \
--url https://api.vertracloud.app/v1/workspaces/{id}/templates/{template_id} \
--header 'Authorization: Bearer <token>'const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.vertracloud.app/v1/workspaces/{id}/templates/{template_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.vertracloud.app/v1/workspaces/{id}/templates/{template_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.vertracloud.app/v1/workspaces/{id}/templates/{template_id}"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}Moves the template back to your account. The same applies to a stack on
DELETE https://api.vertracloud.app/v1/workspaces/{id}/stacks/{stack_id}. Same rules as Unlink Application: owner only, and an API key needs the workspaces:write scope. Nothing is deleted.
Path
string
required
Workspace ID.
string
required
Template ID. For a stack, use
/stacks/{stack_id} with the stack ID instead.Response
Empty response on success.Errors
| Status | Code | When |
|---|---|---|
| 403 | WORKSPACE_OWNER_ONLY | Caller isn’t the workspace owner. |
| 404 | WORKSPACE_NOT_FOUND | Workspace doesn’t exist or you’re not a member. |
| 404 | TEMPLATE_NOT_FOUND | The template isn’t linked to this workspace. |
| 404 | STACK_NOT_FOUND | The stack isn’t linked to this workspace. |
Last modified on October 28, 2026