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

# Delete team

> Deletes an existing team. This action cannot be undone.



## OpenAPI

````yaml /api-reference/teams/openapi.json delete /teams/{teamId}
openapi: 3.0.0
info:
  title: Teams
  version: 1.0.0
  description: API endpoints for managing teams in the 16TMS platform
servers:
  - url: https://api.16tms.com/api/v1
    description: Production server
security:
  - ApiKeyAuth: []
paths:
  /teams/{teamId}:
    delete:
      summary: Delete team
      description: Deletes an existing team. This action cannot be undone.
      operationId: deleteTeam
      parameters:
        - name: teamId
          in: path
          description: The unique identifier of the team
          required: true
          schema:
            type: string
            format: uuid
          example: e86e814e-ca93-412e-b347-fb71837c6466
        - name: externalId
          in: query
          description: External user ID for API key context (must be team owner)
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Team deleted successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeleteTeamResponse'
              example:
                success: true
                message: Team deleted successfully
                meta:
                  traceId: 00-fb61aeecb9154e9e1f1ff1cf32324afc-135e8e98ffea0f69-00
                  elapsedMs: 19.47
                  serverTimestamp: '2026-02-11T06:00:13.9368803Z'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: Forbidden - Only team owner can delete team
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Team not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - ApiKeyAuth: []
components:
  schemas:
    DeleteTeamResponse:
      type: object
      properties:
        success:
          type: boolean
        message:
          type: string
        meta:
          type: object
          properties:
            traceId:
              type: string
            elapsedMs:
              type: number
            serverTimestamp:
              type: string
              format: date-time
    ErrorResponse:
      type: object
      properties:
        success:
          type: boolean
          description: Indicates if the request was successful
          example: false
        message:
          type: string
          description: Error message describing what went wrong
          example: Invalid API key
        errors:
          type: array
          description: Detailed error information
          items:
            type: object
            properties:
              field:
                type: string
                description: The field that caused the error
                example: name
              message:
                type: string
                description: Description of the error
                example: This field is required
        meta:
          type: object
          properties:
            traceId:
              type: string
              description: Unique trace identifier for debugging purposes
            serverTimestamp:
              type: string
              format: date-time
              description: Server timestamp when the error occurred
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-KEY
      description: >-
        API key for authentication. You can generate this from the 16TMS
        console.

````