Skip to main content
This function and all other functions in this graphql sdk are deprecated. Please migrate to the new rest api.
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;