This action is irreversible. All associated data including referrals, commissions, and partnerships will be permanently deleted. A webhook event will be emitted before deletion.
Path Parameters
The unique identifier of the affiliate to delete
Response
The response confirms successful deletion.
Always true for successful deletions
Confirmation message: "Affiliate deleted successfully"
curl -X DELETE "https://api.affonso.io/v1/affiliates/cmj8pptm10002p3010z8mk9ak" \
-H "Authorization: Bearer sk_live_your_api_key"
{
"success": true,
"message": "Affiliate deleted successfully"
}
Note: The associated user account will only be deleted if:
- The user has no other affiliate accounts
- The user does not own any teams
- The user is not a member of any teams
Otherwise, only the affiliate account is deleted and the user account remains.