Deletes a specific subscription plan from a gym.
| Permission | Description |
|---|---|
gym_plans.delete | Delete plans from your own gyms |
gym_plans.delete_any | Delete plans from any gym |
| Name | Type | Required | Description | Example |
|---|---|---|---|---|
| gym-id | int | Yes | ID of the gym | 123 |
| plan-id | int | Yes | ID of the plan | 55 |
DELETE /api/v1/gyms/123/plans/55
Authorization: Bearer {token}
No content is returned when the plan is successfully deleted.
| Status | Description | Reference |
|---|---|---|
| 401 | Unauthorized | Authentication error |
| 403 | Forbidden (no permission) | Permission error |
| 404 | Not found | Not-found error |