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

# Delete a team

> Permanently deletes a team. Requires the `user_management.change_content_access` permission.



## OpenAPI

````yaml /api-reference/openapi.json delete /teams/{team_id}
openapi: 3.0.0
info:
  title: Corgea API
  version: 1.0.0
  description: >-
    API for interacting with Corgea's scanning and vulnerability management
    features
servers:
  - url: https://www.corgea.app/api/v1
    description: Production server
security:
  - CorgeaToken: []
  - BearerAuth: []
paths:
  /teams/{team_id}:
    parameters:
      - name: team_id
        in: path
        required: true
        description: Team ID
        schema:
          type: integer
    delete:
      tags:
        - Teams
      summary: Delete a team
      description: >-
        Permanently deletes a team. Requires the
        `user_management.change_content_access` permission.
      operationId: deleteTeam
      responses:
        '200':
          $ref: '#/components/responses/OkStatus'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          description: Team not found
components:
  responses:
    OkStatus:
      description: Request completed successfully
      content:
        application/json:
          schema:
            type: object
            properties:
              status:
                type: string
                example: ok
    Unauthorized:
      description: Invalid or missing token
      content:
        application/json:
          schema:
            type: object
            properties:
              error:
                type: string
                example: Missing or invalid authorization header
    Forbidden:
      description: Permission denied or feature unavailable
      content:
        application/json:
          schema:
            type: object
            properties:
              error:
                type: string
                example: Permission denied
  securitySchemes:
    CorgeaToken:
      type: apiKey
      in: header
      name: CORGEA-TOKEN
      description: API key for authentication
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: OAuth2 access token (JWT) in the Authorization header

````