Typescript (SDK)
import { Autumn } from 'autumn-js'
const autumn = new Autumn()
const result = await autumn.plans.delete({
planId: "unused_plan",
});{
"success": true
}Plans
Delete a plan
Deletes a plan by its ID.
Use this to permanently remove a plan. Plans with active customers cannot be deleted - archive them instead.
POST
/
v1
/
plans.delete
Typescript (SDK)
import { Autumn } from 'autumn-js'
const autumn = new Autumn()
const result = await autumn.plans.delete({
planId: "unused_plan",
});{
"success": true
}Deletes a plan or a specific version of a plan.
Deleting a plan cannot be undone. Existing subscriptions to this plan will remain active until canceled.
Common Use Cases
await autumn.plans.delete({
planId: "old_plan"
});
Body Parameters
Response
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
Body
application/json
Response
200 - application/json
OK
โI