# Agents: Unassign an agent's phone number (https://docs.envocal.ai/api-reference/agents/unassign-an-agents-phone-number/) > Requires agents:write ## DELETE `/v1/tenants/{tenantId}/agents/{agentId}/phone-numbers` **Required permission:** `agents:write` ### Parameters | Name | In | | Type | Description | | --- | --- | --- | --- | --- | | `tenantId` | path | required | string | Tenant id, or `current` for the key's own tenant. Must be the key's tenant or one of its sub-tenants. | | `agentId` | path | required | string | Agent id. | ### Responses **204**: Unassigned (also when it had none). **401**: Missing, invalid, revoked or expired API key. **403**: The key lacks the required permission, or the tenant/resource is outside its reach. **404**: Agent not found. **429**: Rate limit exceeded. Retry after the number of seconds in the Retry-After header. ### Example ```bash curl -X DELETE "https://api.envocal.ai/v1/tenants/current/agents/{agentId}/phone-numbers" \ -H "Authorization: Bearer evk_eu_..." ```