> ## 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 Default Team Members

> Delete default team members (specific or all)

Remove default team members from your configuration. You can delete a specific member by email or clear all default members at once.

## How It Works

This endpoint provides two deletion modes:

* **Specific deletion**: Provide an `email` to remove a single default member
* **Clear all**: Send empty body `{}` to remove all default members

<Note>
  This only affects future team creation. Existing teams and their members remain unchanged.
</Note>

## Request Body

| Field   | Type   | Required | Description                                            |
| ------- | ------ | -------- | ------------------------------------------------------ |
| `email` | string | No       | Email of specific member to remove. Omit to remove all |

## Examples

### Delete Specific Member

```bash theme={null}
curl -X DELETE "https://api.projectdiscovery.io/v1/user/team/default-members" \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: YOUR_API_KEY" \
  -H "X-Team-Id: YOUR_TEAM_ID" \
  -d '{ "email": "user@example.com" }'
```

**Response:**

```json theme={null}
{
  "message": "default team member deleted successfully"
}
```

### Delete All Default Members

```bash theme={null}
curl -X DELETE "https://api.projectdiscovery.io/v1/user/team/default-members" \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: YOUR_API_KEY" \
  -H "X-Team-Id: YOUR_TEAM_ID" \
  -d '{}'
```

**Response:**

```json theme={null}
{
  "message": "default team member deleted successfully"
}
```

## Alternative Approach

Instead of deleting individual members, you can also use the [Set Default Team Members](/api-reference/internal/set-default-team-members) endpoint with an updated list, which replaces the entire configuration at once.

<Tip>
  For bulk updates, using POST to replace the entire list is more efficient than multiple DELETE operations.
</Tip>

## Authorization

Only **owner** or **admin** of the workspace (identified by `X-Team-Id`) can delete default members.


## OpenAPI

````yaml delete /v1/user/team/default-members
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/default-members:
    delete:
      tags:
        - internal
      summary: Delete Default Team Members
      description: Delete default team members (specific or all)
      operationId: delete-v1-user-team-default-members
      parameters:
        - schema:
            type: string
          in: header
          description: >-
            Retrieve the Team ID from:
            https://cloud.projectdiscovery.io/settings/team
          name: X-Team-Id
          required: true
      requestBody:
        $ref: '#/components/requestBodies/DeleteDefaultTeamMemberRequest'
      responses:
        '200':
          $ref: '#/components/responses/MessageResponse'
        '400':
          $ref: '#/components/responses/MessageResponse'
        '401':
          $ref: '#/components/responses/MessageResponse'
        '403':
          $ref: '#/components/responses/MessageResponse'
        '500':
          $ref: '#/components/responses/MessageResponse'
        default:
          $ref: '#/components/responses/ErrorResponse'
      security:
        - X-API-Key: []
components:
  requestBodies:
    DeleteDefaultTeamMemberRequest:
      content:
        application/json:
          schema:
            type: object
            properties:
              email:
                type: string
                description: Email of specific member to remove. Omit to remove all
  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

````