TypeScript
import { Autumn } from 'autumn-js' const autumn = new Autumn() const result = await autumn.plans.delete({ planId: "unused_plan", });
{ "success": true }
Deletes a plan by its ID.
Use this to permanently remove a plan. Plans with active customers cannot be deleted - archive them instead.
await autumn.plans.delete({ planId: "old_plan" });
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
The ID of the plan to delete.
1
If true, deletes all versions of the plan. Otherwise, only deletes the latest version.
OK