Delete Stack Connection
curl --request DELETE \
--url https://api.vertracloud.app/v1/stacks/{stack_id}/bindings/{binding_id} \
--header 'Authorization: Bearer <token>'const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.vertracloud.app/v1/stacks/{stack_id}/bindings/{binding_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.vertracloud.app/v1/stacks/{stack_id}/bindings/{binding_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/stacks/{stack_id}/bindings/{binding_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))
}{
"response": { "restart_required": true, "apps_to_restart": ["app-abc123def456"] }
}
Connections
Delete Stack Connection
Removes a connection of a stack, keeping or deleting the variables it created.
DELETE
/
v1
/
stacks
/
{stack_id}
/
bindings
/
{binding_id}
Delete Stack Connection
curl --request DELETE \
--url https://api.vertracloud.app/v1/stacks/{stack_id}/bindings/{binding_id} \
--header 'Authorization: Bearer <token>'const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.vertracloud.app/v1/stacks/{stack_id}/bindings/{binding_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.vertracloud.app/v1/stacks/{stack_id}/bindings/{binding_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/stacks/{stack_id}/bindings/{binding_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))
}{
"response": { "restart_required": true, "apps_to_restart": ["app-abc123def456"] }
}
Removes a connection. The members stay in the stack. Needs the
stacks:write scope when called with an API key.
string
required
The stack ID.
string
required
The connection ID.
string
default:"keep_connection"
What happens to the variables the connection created:
keep_connection: they become ordinary variables and the certificates stay, so the application keeps connecting.remove_variables: the variables and the certificates copied to the application are deleted.
string
The workspace the stack belongs to, when you act on it as the workspace owner.
Response
object
{
"response": { "restart_required": true, "apps_to_restart": ["app-abc123def456"] }
}
Errors
| Status | Code | When |
|---|---|---|
| 403 | WORKSPACE_OWNER_ONLY | You are a workspace member, not the owner. |
| 404 | STACK_NOT_FOUND | The stack does not exist or belongs to another account. |
| 404 | STACK_BINDING_NOT_FOUND | The stack has no connection with that ID. |
Last modified on October 28, 2026