import Whop from '@whop/sdk';
const client = new Whop({
apiKey: process.env['WHOP_API_KEY'], // This is the default and can be omitted
});
const plan = await client.plans.delete('plan_xxxxxxxxxxxxx');
console.log(plan);
Copy
Ask AI
true
Plans
Delete plan
Delete an existing Plan
Required permissions:
plan:delete
DELETE
/
plans
/
{id}
JavaScript
Copy
Ask AI
import Whop from '@whop/sdk';
const client = new Whop({
apiKey: process.env['WHOP_API_KEY'], // This is the default and can be omitted
});
const plan = await client.plans.delete('plan_xxxxxxxxxxxxx');
console.log(plan);