# Delete

This endpoint will delete a given team member from a bot team.

### Request

The following request will remove a team member from a bot team. Deletion happen immediately but if the team member is currently online on the bot some privileges may last until next login/logoff cycle.

```bash
curl --location --request DELETE 'https://<NODE>.xenioo.com/bot/teams/<EMAIL>' \
--header 'Authorization: Bearer <BOT_AUTH_TOKEN>' \
--header 'Content-Type: application/json'
```

### Response

If successful, the response will simply have a standard 200 OK code.

### Response Codes

This endpoint will reply with the following standard HTTP codes.

| Code | Meaning                                                                              |
| ---- | ------------------------------------------------------------------------------------ |
| 200  | Ok. The request has been successfully fulfilled.                                     |
| 400  | Bad Request. The supplied token is invalid or does not have enough permissions.      |
| 404  | Not Found. The account, the chatbot or the team member specified could not be found. |
