CHW-4501 UsagePlanInUse

cannot delete this pricing plan: it is still assigned to one or more organisations; reassign those orgs to a different plan first

Default message: cannot delete this pricing plan: it is still assigned to one or more organisations; reassign those orgs to a different plan first
HTTP status: 409 (client)

Problem. DELETE /api/usage/plans/{id} returned 409. Cause. The pricing plan is still assigned to one or more organisations; the foreign-key on org_plan_assignments would also block the delete, but the handler short-circuits with a friendlier error and the assignment count in fields.assigned_orgs. Fix. Reassign the affected orgs to a different plan via PUT /api/usage/plans/assign, then retry the delete. HTTP 409.