Delete a Plan

Deletes the specified plan object from your ChartMogul account.

Examples
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")
Result Format
{}
true
{}
true
nil
None

📘

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.

Language
Credentials
Basic
base64
: