> ## Documentation Index
> Fetch the complete documentation index at: https://docs.affonso.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete Referral

> Delete a referral and all associated commission transactions

<Warning>
  This action is irreversible. All associated commission transactions will be permanently deleted. A webhook event will be emitted before deletion.
</Warning>

## Path Parameters

<ParamField path="id" type="string" required>
  The unique identifier of the referral to delete
</ParamField>

## Response

The response confirms successful deletion.

<ResponseField name="success" type="boolean">
  Always `true` for successful deletions
</ResponseField>

<ResponseField name="data" type="object">
  Deletion confirmation object.

  <Expandable title="Data Object Properties">
    <ResponseField name="id" type="string">
      The deleted referral ID
    </ResponseField>

    <ResponseField name="deleted" type="boolean">
      Always `true`
    </ResponseField>
  </Expandable>
</ResponseField>

<RequestExample>
  ```bash cURL theme={null}
  curl -X DELETE "https://api.affonso.io/v1/referrals/ref_abc123" \
    -H "Authorization: Bearer sk_live_your_api_key"
  ```
</RequestExample>

<ResponseExample>
  ```json Response theme={null}
  {
    "success": true,
    "data": {
      "id": "ref_abc123",
      "deleted": true
    }
  }
  ```
</ResponseExample>
