---
title: "Delete affiliates"
method: DELETE
path: "/affiliates"
---

# Delete affiliates

`DELETE /affiliates`

Permanently deletes an affiliate from the program, along with the records that cascade from them (their affiliate links, referrals, sales and commissions). This cannot be undone.

`affiliateId` accepts either the affiliate's UUID or their email address. The request succeeds with the same response even when nothing matched, so check the affiliate exists first if that matters to you. Fires the `affiliate.deleted` webhook.

## Request body

- AffiliateDelete
  - `affiliateId` string, required — The ID of the affiliate to delete. An affiliate email address is also accepted.

## Response `200`

The affiliate was deleted.

- DeleteMessage
  - `message` string — Confirmation message

## Other responses

- `400` — `affiliateId` was not supplied, or the delete failed.
- `401` — The `Authorization` header is missing, is not a `Bearer` header, or the token is not valid.
- `403` — API access is not enabled for this account.
- `404` — The affiliate program this token belongs to no longer exists.
- `429` — Too many requests for this token on this endpoint. Please slow down.

---

[API](https://skmtc.net/referly/apis/referly-api.md) · [All operations](https://skmtc.net/referly/apis/referly-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/referly/referly-api/versions/0f506d61b9c3/schema)
