import Whop from '@whop/sdk';const client = new Whop({ apiKey: 'My API Key',});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: 'My API Key',});const plan = await client.plans.delete('plan_xxxxxxxxxxxxx');console.log(plan);