Skip to main content
DELETE
/
v1
/
user
/
team
/
default-members
Delete Default Team Members
curl --request DELETE \
  --url https://api.projectdiscovery.io/v1/user/team/default-members \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --header 'X-Team-Id: <x-team-id>' \
  --data '
{
  "email": "<string>"
}
'
{
  "message": "<string>"
}
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
This only affects future team creation. Existing teams and their members remain unchanged.

Request Body

FieldTypeRequiredDescription
emailstringNoEmail of specific member to remove. Omit to remove all

Examples

Delete Specific Member

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:
{
  "message": "default team member deleted successfully"
}

Delete All Default Members

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:
{
  "message": "default team member deleted successfully"
}

Alternative Approach

Instead of deleting individual members, you can also use the Set Default Team Members endpoint with an updated list, which replaces the entire configuration at once.
For bulk updates, using POST to replace the entire list is more efficient than multiple DELETE operations.

Authorization

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

Authorizations

X-API-Key
string
header
required

Headers

X-Team-Id
string
required

Body

application/json
email
string

Email of specific member to remove. Omit to remove all

Response

Example response

message
string
required