---
title: "Delete user from team"
url: "https://docs.signnow.com/docs/manage-users/operations/delete-user-from-team"
type: "endpoint"
section: "manage-users"
slug: "manage-users/operations/delete-user-from-team"
method: "DELETE"
path: "/team/{team_id}/user/{user_id}"
operation_id: "delete-user-from-team"
authorization: "bearer"
---

# Delete user from team

`DELETE /team/{team_id}/user/{user_id}`

This endpoint allows:
* team primary admin to delete a user from a team 
* team members to delete themselves from a team

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `team_id` | string | Yes |  |
| `user_id` | string | Yes |  |

## Responses

### 200

**Example** (`application/json`)

```json
{
  "result": "success"
}
```

### 400

* Incorrect `access_token`: it must belong to the team primary admin or to the user being deleted.
* Team not found.
* User not found.

**Example** (`Team not found`)

```json
{
  "code": 66362,
  "message": "Team not found"
}
```

**Example** (`User not found`)

```json
{
  "code": 65582,
  "message": "User not found"
}
```

**Example** (`Insufficient rights`)

```json
{
  "code": 65582,
  "message": "Only the admin or person being deleted can delete themselves"
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X DELETE \
  "https://api.signnow.com/team/{team_id}/user/{user_id}" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---
*Full reference: https://docs.signnow.com/docs/manage-users/operations/delete-user-from-team*
