# Remove a website (https://webmetic.de/docs/api/referenz/partner/customers-account-id-websites-domain)

## DELETE /partner/customers/{account_id}/websites/{domain}

Remove a domain from a customer.

This revokes API access to the domain. Already collected tracking data is
kept and becomes reachable again if the domain is added back.

Note: This endpoint is rate-limited to 30 requests per minute.

### Parameter

| Name | Ort | Typ | Pflicht | Beschreibung |
| --- | --- | --- | --- | --- |
| `account_id` | path | string | ja | Account id of the customer, from create-customer or the customer list |
| `domain` | path | string | ja | A domain of the customer as listed in `websites`, any case |

### Antworten

| Status | Beschreibung |
| --- | --- |
| 200 | All domains the customer has left; can be empty |
| 403 | API_KEY_MISSING, API_KEY_INVALID, API_KEY_NOT_FOUND, or NOT_A_PARTNER: the key does not belong to a partner account |
| 404 | CUSTOMER_NOT_FOUND: no customer of your partner account has this account id, or WEBSITE_NOT_FOUND: the customer does not have this domain |
| 422 | VALIDATION_ERROR: the request is invalid; `errors` lists each problem |
| 429 | RATE_LIMITED: more than 30 requests per minute to this endpoint |
| 500 | INTERNAL_ERROR: unexpected server error |

Felder der Antwort 200:

| Feld | Typ | Pflicht | Beschreibung |
| --- | --- | --- | --- |
| `account_id` | string | ja | Account id of the customer |
| `websites` | string[] | ja | All domains of the customer after the change |

### Beispiel

```bash
curl -X DELETE 'https://hub.webmetic.de/partner/customers/<account_id>/websites/<domain>' \
  -H 'Authorization: wmtc_IHR_API_SCHLUESSEL'
```