delete_codes
Permanently delete 1 to 1,000 codes. IRREVERSIBLE. Only codes nobody holds are deleted — assigned, redeemed and voided codes are never removed and come back in Skipped, so always report Deleted and SkippedCount to the user rather than assuming the whole batch went. confirm=true is REQUIRED on every call; set it only after the user confirmed THIS deletion. To take a code back from a participant instead, use unassign_code. Requires the Codes & Coupons module enabled on the account — on 403 "module not enabled", do NOT retry; tell the user to contact Sweeppea support.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | Yes | Must be true. Set it ONLY after the user explicitly confirmed THIS deletion in this conversation, having been told what is lost: the listed codes, permanently — codes that are assigned, redeemed or voided are skipped and survive. Never assume, never carry a confirmation over from a previous item, never set it to satisfy the schema. | |
| coupon_tokens | Yes | 1 to 1,000 code tokens (UUID v4). Duplicates are collapsed |