delete https://api.chartmogul.com/v1/plan_groups/
Deletes the specified plan_group
object from your ChartMogul account.
Examples
curl -X DELETE "https://api.chartmogul.com/v1/plan_groups/plg_eed05d54-75b4-431b-adb2-eb6b9e543206" \
-u YOUR_API_KEY: \
-H "Content-Type: application/json"
plan_groups = ChartMogul::PlanGroup.all
plan_group = plan_groups.last
plan_group.destroy!
ChartMogul.PlanGroup.destroy(config, "plg_eed05d54-75b4-431b-adb2-eb6b9e543206", function (err, res) {
// aysnchronously called
});
<?php
ChartMogul\PlanGroup::all()->last()->destroy();
?>
api.DeletePlanGroup("plg_eed05d54-75b4-431b-adb2-eb6b9e543206")
chartmogul.PlanGroup.destroy(config, uuid='plg_eed05d54-75b4-431b-adb2-eb6b9e543206')
Result Format
{ }
true
{ }
true
nil
None
Conditions and impact of this action
This will delete the plan groups but not the plans within the plan group. You can use the Plan delete endpoint to delete the plans.