# Remove a customer's recipient account

`DELETE /v1/platforms/{platformOrgId}/customers/{customerOrgId}/counterparties/{counterpartyId}/accounts/{externalAccountId}`

**Remove a recipient account** (Act as a platform). Removes one bank account or wallet. The last account cannot be removed.

Prerequisite: Permission `platform:customer_operate`.

Acts on a linked customer with the platform's own key or team (platform:customer_operate). Same as DELETE /v1/orgs/{orgId}/counterparties/{counterpartyId}/accounts/{externalAccountId}. Removes one of a recipient's accounts; the recipient keeps at least one. Requires two-factor authentication.

Requires: organization platform; permission platform:customer_operate

Errors: last_account

```bash
curl -X DELETE "https://sandbox-api.payezy.io/v1/platforms/$PLATFORM_ORG_ID/customers/$CUSTOMER_ORG_ID/counterparties/$COUNTERPARTY_ID/accounts/$EXTERNAL_ACCOUNT_ID" \
  -H "Authorization: Bearer $PAYEZY_KEY"
```
