# Delete Agent
Delete the Meta Business Agent for a specific entity.
This endpoint removes the Meta Business Agent from a specific WhatsApp phone number. It deletes the agent configuration and, when the last agent on the account is removed, disconnects the integration. This endpoint allows 1,000 requests per hour for each app and `entity_id` pair. Once that is exhausted, further requests return `429` until the limit resets.
## Base URL
| URL | Description |
|-----|-------------|
| https://api.facebook.com/{entity_id}/delete_agent | |
## Authorization
This API requires:
any of the following Permission: whatsapp_business_messaging
## APIs
| Method | Endpoint |
|--------|----------|
| DELETE | [/](#delete) |
<jumplink id="delete"></jumplink>
## DELETE /
Delete the Meta Business agent
Remove the Meta Business agent from the specified WhatsApp phone number. Deletes the agent configuration and, when the last agent on the account is removed, disconnects the integration.
### Header Parameters
| Name | Type | Required | Description |
|------|------|----------|-------------|
| X-API-Version | "2.0.0" | | |
### Path Parameters
| Name | Type | Required | Description |
|------|------|----------|-------------|
| entity_id | string | ✓ | The WhatsApp Business Phone Number ID for the Meta Business Agent. |
### Responses
**200**
Agent deleted successfully
**Content Type**: `application/json`
**Schema**: [BizAIOmniChannelDeleteAgentResponse](#bizaiomnichanneldeleteagentresponse)
**400**
Bad request
**Content Type**: `application/json`
**Schema**: [StandardError](#standarderror)
**401**
Unauthorized
**Content Type**: `application/json`
**Schema**: [StandardError](#standarderror)
**403**
Forbidden
**Content Type**: `application/json`
**Schema**: [StandardError](#standarderror)
**429**
Too many requests
**Content Type**: `application/json`
**Schema**: [StandardError](#standarderror)
**500**
Server error
**Content Type**: `application/json`
**Schema**: [StandardError](#standarderror)
# Components
## Schemas
<jumplink id="bizaiomnichanneldeleteagentresponse"></jumplink>
### BizAIOmniChannelDeleteAgentResponse
| Property | Type | Required | Description |
|----------|------|----------|-------------|
| deleted_agent_id | string | | The ID of the AI agent settings that was removed, or null if there was nothing to remove. |
<jumplink id="standarderror"></jumplink>
### StandardError
| Property | Type | Required | Description |
|----------|------|----------|-------------|
| detail | string | ✓ | |
| status | integer | | |
| title | string | ✓ | |
| type | string | | |
## Authentication
| Method | How to send it |
|--------|----------------|
| Authorization header | `Authorization: Bearer {access-token}` |
### Global Authentication Requirements
All endpoints require: `Authorization: Bearer {access-token}`