# Delete

This endpoint will delete the specified profile from a bot.

### Request

The following request will remove a profile from a bot. Attempting to delete a profile that has is currently used by at least one team member will result in a Bad Request error.

```bash
curl --location --request DELETE 'https://<SERVICE ENDPOINT>/teams/profiles/<PROFILE ID>' \
--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. |
