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

# Delete a recipient

> Delete a recipient

See [authentication, signing, data conventions, and errors](https://docs.stablepayfi.ai/en/api/global-accounts/overview). Regenerate the timestamp, nonce, and signature on every retry.

`DELETE /recipient/{recipient_id}` Deletes a recipient; existing withdrawals and transfers keep their snapshots.

## Request headers

**Authorization** `string` *required*

Bearer API Key.

**X-StablePay-Timestamp** `string` *required*

Unix seconds, within five minutes of server time.

**X-StablePay-Nonce** `string` *required*

Unique per request, 16–64 characters.

**X-StablePay-Signature** `string` *required*

Lowercase hexadecimal HMAC-SHA256 signature for the exact request body.

## Request parameters

**recipient\_id** `string` *required*

Recipient ID

**merchant\_id** `string`

10 digits; omit for merchant apps, required for service-provider apps

## Response

204 No Content on success; no body

## Status and errors

204 with no body; 404 when missing.

```bash cURL theme={"system"}
curl --request DELETE \
  --url "https://api.stablepay.co/api/v1/recipient/{recipient_id}" \
  --header "Authorization: Bearer <API_KEY>" \
  --header "X-StablePay-Timestamp: <TIMESTAMP>" \
  --header "X-StablePay-Nonce: <NONCE>" \
  --header "X-StablePay-Signature: <SIGNATURE>"
```

```javascript JavaScript theme={"system"}
const response = await fetch("https://api.stablepay.co/api/v1/recipient/{recipient_id}", {
  method: "DELETE",
  headers: {
    "Authorization": "Bearer <API_KEY>",
    "X-StablePay-Timestamp": "<TIMESTAMP>",
    "X-StablePay-Nonce": "<NONCE>",
    "X-StablePay-Signature": "<SIGNATURE>"
  }
});
console.log(response.status);
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.