> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xenia.team/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete Team



## OpenAPI

````yaml DELETE /api/v1/mgt/workspaces/{workspaceId}/teams/{teamId}
openapi: 3.1.0
info:
  title: Xenia Team API - Delete Team
  version: 1.0.0
  description: Delete a team.
servers:
  - url: https://api.xenia.team
security: []
paths:
  /api/v1/mgt/workspaces/{workspaceId}/teams/{teamId}:
    delete:
      tags:
        - Teams
      summary: Delete Team
      description: >-
        Requires the **Manage Teams** (`CAN_MANAGE_TEAMS`) permission on the
        acting user (the key's default user, or `x-client-user`).


        The team is deleted permanently. It cannot be restored. Submission
        approver assignments that use this team are removed with it.
      parameters:
        - name: workspaceId
          in: path
          required: true
          description: UUID of the workspace. Must be your key's own workspace.
          schema:
            type: string
            format: uuid
            example: cb363f7e-c52a-4478-911d-f6a6f791090e
        - name: teamId
          in: path
          required: true
          description: ID of the team.
          schema:
            type: string
            example: 3ab9c8d7-2222-4bbb-8ccc-1e2f3a4b5c6d
      responses:
        '200':
          description: Team deleted.
          content:
            application/json:
              example:
                data: {}
                meta: {}
        '401':
          description: >-
            Unauthorized - invalid client credentials, or the key does not
            belong to this workspace.
        '403':
          description: Forbidden - route not allowed for API keys, or missing permission.
          content:
            application/json:
              examples:
                missingPermission:
                  summary: You don't have permission "Can manage teams".
                  value:
                    error:
                      message: You don't have permission "Can manage teams".
                      meta: {}
        '404':
          description: Team not found in this workspace.
          content:
            application/json:
              examples:
                notFound:
                  summary: Team not found.
                  value:
                    error:
                      message: Team not found.
                      meta: {}
        '500':
          description: Internal server error.
      security:
        - clientKey: []
          clientSecret: []
components:
  securitySchemes:
    clientKey:
      type: apiKey
      in: header
      name: x-client-key
    clientSecret:
      type: apiKey
      in: header
      name: x-client-secret

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.