Deletes a gym by its ID. Normal users can delete their own gyms, while admins can delete any gym.
Permission | Description |
---|---|
gyms.delete | Delete your own gym |
gyms.delete_any | Delete any gym (admin only) |
Name | Type | Required | Description | Example |
---|---|---|---|---|
gym-id | int | Yes | ID of the gym to delete | 123 |
Gym was successfully deleted. No response body is returned.
Status | Description | Reference |
---|---|---|
401 | Unauthorized | Authentication error |
403 | Forbidden (no permission) | Permission error |
404 | Not found | Not-found error |