deleteCoupon
Permanently delete a coupon by its UUID.
Import
import { deleteCoupon } from '@evershop/evershop/promotion/services';
Syntax
deleteCoupon(uuid: string, context?: Record<string, any>): Promise<void>
Parameters
uuid — The UUID of the coupon to delete.
context (optional) — Context object passed to hooks.
Examples
import { deleteCoupon } from '@evershop/evershop/promotion/services';
await deleteCoupon('a1b2c3d4-e5f6-7890-abcd-ef1234567890');
See Also
- createCoupon — Create a coupon
- updateCoupon — Update a coupon