This operation is only available on the server.

Required Permissions

  • promo_code:delete

Usage

import { whopSdk } from "@/lib/whop-sdk";

const result = await whopSdk.promoCodes.deletePromoCode({
	// The internal ID of the promo code to archive.
	id: "xxxxxxxxxxx" /* Required! */,
});

Example output

const result = true;