Delete member
DELETE
/v1/people/{id}
const url = 'https://api.varman.io/v1/people/mem_abc123def456?skipOffboarding=example';const options = {method: 'DELETE', headers: {'X-API-Key': '<X-API-Key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url 'https://api.varman.io/v1/people/mem_abc123def456?skipOffboarding=example' \ --header 'X-API-Key: <X-API-Key>'Permanently removes a member from the organization. This action cannot be undone.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Example
mem_abc123def456Member ID
Query Parameters
Section titled “Query Parameters”skipOffboarding
required
string
Responses
Section titled “Responses”Member deleted successfully
Media typeapplication/json
object
success
Indicates successful deletion
boolean
deletedMember
object
id
The deleted member ID
string
name
The deleted member name
string
email
The deleted member email
string
authType
How the request was authenticated
string
Example
{ "success": true, "deletedMember": { "id": "mem_abc123def456", "name": "John Doe", "email": "john.doe@company.com" }, "authType": "api-key"}Unauthorized - Invalid authentication or insufficient permissions
Media typeapplication/json
object
message
string
Example
{ "message": "Unauthorized"}Organization or member not found
Media typeapplication/json
object
message
string
Example
{ "message": "Member with ID mem_abc123def456 not found in organization org_abc123def456"}Internal server error
Media typeapplication/json
object
message
string
Example
{ "message": "Failed to delete member"}