import Hercules from '@usehercules/sdk';const client = new Hercules({ apiVersion: '2025-12-09', apiKey: process.env['HERCULES_API_KEY'], // This is the default and can be omitted});await client.beta.subscriptions.plans.entitlements.remove('feature_id', { plan_id: 'plan_id' });
Plan Entitlements
Remove Entitlement from Plan
Removes an entitlement from a plan. Customers subscribed to this plan will lose access to the feature. Existing subscriptions are affected immediately.
DELETE
/
v1
/
subscriptions
/
plans
/
{plan_id}
/
entitlements
/
{feature_id}
JavaScript
Copy
Ask AI
import Hercules from '@usehercules/sdk';const client = new Hercules({ apiVersion: '2025-12-09', apiKey: process.env['HERCULES_API_KEY'], // This is the default and can be omitted});await client.beta.subscriptions.plans.entitlements.remove('feature_id', { plan_id: 'plan_id' });