Delete a Plan

DELETE https://api.chartmogul.com/v1/plans/{PLAN_UUID}

Deletes the specified plan object from your ChartMogul account.

curl -X DELETE "https://api.chartmogul.com/v1/plans/pl_eed05d54-75b4-431b-adb2-eb6b9e543206" \
     -u YOUR_API_KEY: \
     -H "Content-Type: application/json"
ChartMogul::Plan.retrieve("pl_eed05d54-75b4-431b-adb2-eb6b9e543206").destroy!
ChartMogul.Plan.destroy(config, "pl_eed05d54-75b4-431b-adb2-eb6b9e543206");
ChartMogul\Plan::retrieve("pl_eed05d54-75b4-431b-adb2-eb6b9e543206")->destroy();
api.DeletePlan("pl_eed05d54-75b4-431b-adb2-eb6b9e543206")
chartmogul.Plan.destroy(config, uuid="pl_eed05d54-75b4-431b-adb2-eb6b9e543206")
{}
true
{}
true
nil
None

Path parameters

plan_uuid string required
The ChartMogul UUID of the plan to be deleted.

Conditions and impact of this action. Only plans belonging to data sources based on the Import API can be deleted. Deleting a plan will only remove the plan object, and only if it isn't referenced by any subscriptions or invoices.