This operation is only available on the server.
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 response = true;