Skip to main content
DELETE
/
team_members
/
{team_member_id}
Remove team member
curl --request DELETE \
  --url https://{your-subdomain}.neetocrm.com/api/external/v1/team_members/{team_member_id} \
  --header 'Accept: <accept>' \
  --header 'X-Api-Key: <x-api-key>'
const options = {method: 'DELETE', headers: {'X-Api-Key': '<x-api-key>', Accept: '<accept>'}};

fetch('https://{your-subdomain}.neetocrm.com/api/external/v1/team_members/{team_member_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
import requests

url = "https://{your-subdomain}.neetocrm.com/api/external/v1/team_members/{team_member_id}"

headers = {
"X-Api-Key": "<x-api-key>",
"Accept": "<accept>"
}

response = requests.delete(url, headers=headers)

print(response.text)
{
  "message": "Team member has been removed"
}
{
"error": "Cannot remove the last admin of the workspace"
}
Deprecated: This is a v1 endpoint. It will continue to work, but we recommend migrating to the v2 equivalent for improved REST compliance (correct HTTP status codes, consistent response envelopes, and hyphenated URLs).
Replace {your-subdomain} with your workspace’s subdomain.
Learn how to find your subdomain in Workspace subdomain.

Headers

X-Api-Key
string
required

Use the X-Api-Key header to provide your workspace API key. Refer to Authentication for more information.

Accept
enum<string>
default:application/json
required

Specifies the expected response format. Must be set to application/json for proper API communication.

Available options:
application/json

Path Parameters

team_member_id
string<uuid>
required

Id of the team member that you want to remove. You can get team_member_id by listing all team members using our List team members API. Here you will see id for each team member.

Example:

"aaaabbbb-cccc-dddd-eeee-ffff00001111"

Response

OK - Team member removed successfully

message
string
Example:

"Team member has been removed"