---
title: "destroy team"
method: DELETE
path: "/api/v0/team/"
tags: ["Team"]
---

# destroy team

`DELETE /api/v0/team/`

Deletes a team and all associated data including API keys, rights, invitations, memberships and metadata. The team owner's master API key is converted to a normal client key.

CLI Usage: `vastai destroy team`

## Response `200`

Team successfully deleted

- object
  - `success` boolean
  - `msg` string
  - `pkey_id` integer — ID of the user's team API key which was converted back to a client key.

## Other responses

- `401` — Unauthorized - Invalid or missing API key
- `403` — Forbidden - Only the Team's Owner may delete the team
- `404` — Not Found - Team does not exist or user is not a team account

---

[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)
