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"
plans = ChartMogul::Plan.all
plan = plans.last
plan.destroy!
ChartMogul.Plan.destroy(config, "pl_eed05d54-75b4-431b-adb2-eb6b9e543206", function (err, res) {
   // aysnchronously called
});
<?php

ChartMogul\Plan::all()->last()->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
Authentication
Basic
base64
: