Roles
Delete Role
Deletes a role. Requires roles:manage; refused while it’s assigned to a member or a pending invite.
DELETE
/
v1
/
workspaces
/
{id}
/
roles
/
{role_id}
Delete Role
curl --request DELETE \
--url https://api.vertracloud.app/v1/workspaces/{id}/roles/{role_id} \
--header 'Authorization: Bearer <token>'const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.vertracloud.app/v1/workspaces/{id}/roles/{role_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}/roles/{role_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}/roles/{role_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))
}Requires
roles:manage. An API key needs the workspaces:write scope.
Path
string
required
Workspace ID.
string
required
Role ID.
Response
Empty response on success.Errors
| Status | Code | When |
|---|---|---|
| 403 | WORKSPACE_PERMISSION_DENIED | Caller lacks roles:manage. |
| 404 | WORKSPACE_NOT_FOUND | Workspace doesn’t exist or you’re not a member. |
| 404 | WORKSPACE_ROLE_NOT_FOUND | role_id doesn’t belong to this workspace. |
| 409 | WORKSPACE_ROLE_IN_USE | A member holds this role, or an invite pending on it exists. Reassign/revoke first. |
Last modified on September 25, 2026
⌘I
Delete Role
curl --request DELETE \
--url https://api.vertracloud.app/v1/workspaces/{id}/roles/{role_id} \
--header 'Authorization: Bearer <token>'const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.vertracloud.app/v1/workspaces/{id}/roles/{role_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}/roles/{role_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}/roles/{role_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))
}