---
title: "remove team role"
method: DELETE
path: "/api/v0/team/roles/{name}"
tags: ["Team"]
---

# remove team role

`DELETE /api/v0/team/roles/{name}`

Removes a role from the team. Cannot remove the team owner role.

CLI Usage: `vastai remove team-role <name>`

## Path parameters

- `name` string, required

## Response `200`

Role removed successfully

- object
  - `status` 'success'
  - `message` string

## Other responses

- `400` — Bad request - role name is required
- `401` — Unauthorized - invalid or missing API key
- `403` — Forbidden - cannot delete owner role or user is blacklisted
- `404` — Role not found

---

[API](https://skmtc.net/vast/apis/vast-ai-api.md) · [All operations](https://skmtc.net/vast/apis/vast-ai-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/vast/vast-ai-api/revisions/4ed14f79f796/schema)
