Actions84
- Affiliate Actions
- Checkout Actions
- Customer Actions
- Discount Actions
- Discount Redemption Actions
- File Actions
- License Key Actions
- License Key Instance Actions
- Order Actions
- Order Item Actions
- Price Actions
- Product Actions
- Store Actions
- Subscription Actions
- Subscription Invoice Actions
- Subscription Item Actions
- Usage Record Actions
- User Actions
- Variant Actions
- Webhook Actions
Discount → Delete
AI-generatedSummary
Deletes a single Lemon Squeezy discount by its ID using the Lemon Squeezy API (DELETE on the discounts endpoint).
Inputs
- discountId (required) — Numeric string ID of the discount to delete (e.g. 12345).
- simplifyOutput — Defaults to true. Flattens JSON:API attributes to the top level of the output. Disable for raw JSON:API format. A delete typically returns no resource body, so this has little visible effect.
- retryOptions — Collection with Max Retries (default 3, 0–10, 0 disables) and Initial Delay in ms (default 1000, 100–30000, doubles on each retry). Controls retries on failed API requests.
Output shape
One output item per input item, reflecting the API's response to the delete request. The delete function's source is not visible in the provided pack.
The exact return body isn't shown in the source pack. Lemon Squeezy normally returns an empty 204 response for deletes, so expect a minimal success indicator rather than the discount record. Failures, such as a nonexistent ID, raise an API error. Rate-limit (429) and 5xx/network errors are retried per the retry options.
Examples
Example 1: Remove an expired promo code after a campaign ends.
Resource: Discount, Operation: Delete, Discount ID: 12345, defaults for the other options.
Example 2: Delete a discount ID passed from an earlier node, with more resilient retries.
Discount ID set by expression {{$json.discountId}}, Retry Options: Max Retries 5, Initial Delay 2000 ms.