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

# Delete Team

> Delete team (require 0 members)

Permanently delete a team workspace from ProjectDiscovery Cloud Platform. This is a destructive operation that removes all team data, including scans, assets, vulnerabilities, and configurations.

## ⚠️ Critical Information

<Warning>
  **This operation is irreversible!** Once a team is deleted, all associated data including scans, assets, vulnerabilities, templates, and configurations will be permanently removed and cannot be recovered.
</Warning>

## Disclaimer

* Only the team owner can delete a team
* Understand that all team data will be lost permanently

## Use Cases

* **Workspace Cleanup**: Remove unused or test workspaces
* **Organization Restructuring**: Delete deprecated teams during reorganization
* **Compliance**: Remove teams as part of data retention policies
* **Resource Management**: Clean up temporary or project-specific workspaces

## What Gets Deleted

When you delete a team, the following data is permanently removed:

* All vulnerability scans and results
* All discovered assets and enumeration data
* All custom templates and configurations
* All team settings and preferences
* All scan histories and logs
* All team-specific integrations

<Note>
  If you need to preserve any team data, make sure to export it before deletion. There is no way to recover deleted team data.
</Note>


## OpenAPI

````yaml delete /v1/user/team
openapi: 3.1.0
info:
  title: PDCP API
  version: '1.0'
  summary: ProjectDiscovery Cloud Platform
  description: >-
    For more details, checkout
    https://docs.projectdiscovery.io/api-reference/editor/scan
servers:
  - url: https://api.projectdiscovery.io
    description: Production
  - url: https://api.dev.projectdiscovery.io
    description: Development
  - url: http://localhost:8085
    description: Localhost
security:
  - X-API-Key: []
paths:
  /v1/user/team:
    delete:
      tags:
        - internal
      summary: Delete Team
      description: Delete team (require 0 members)
      operationId: delete-v1-user-team
      parameters:
        - schema:
            type: string
          in: header
          description: >-
            Retrieve the Team ID from:
            https://cloud.projectdiscovery.io/settings/team
          name: X-Team-Id
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                team_id:
                  type: string
              required:
                - team_id
      responses:
        '200':
          description: OK
        '400':
          $ref: '#/components/responses/MessageResponse'
        '403':
          $ref: '#/components/responses/MessageResponse'
        '500':
          $ref: '#/components/responses/MessageResponse'
        default:
          $ref: '#/components/responses/ErrorResponse'
      security:
        - X-API-Key: []
components:
  responses:
    MessageResponse:
      description: Example response
      content:
        application/json:
          schema:
            type: object
            properties:
              message:
                type: string
            required:
              - message
    ErrorResponse:
      description: Example response
      content:
        application/json:
          schema:
            type: object
            required:
              - message
            properties:
              message:
                type: string
              kind:
                type: string
              code:
                type: string
              error:
                type: string
              error_id:
                type: string
              param:
                type: string
              status:
                type: integer
  securitySchemes:
    X-API-Key:
      name: X-API-Key
      type: apiKey
      in: header

````