در حال بارگذاری…
Delete a diet plan.
| Permission | Description |
|---|---|
diet_plans.delete | Delete your own diet plans |
None.
Despite the 204, this endpoint does return a JSON body — a localized confirmation message.
HTTP defines 204 as bodyless, so some clients and proxies discard it; treat the body as informational,
not something to depend on.
{
"message": "Diet plan deleted successfully."
}
Localized from messages.training.diet_plans.deleted_successfully (fa: “پلن غذایی با موفقیت حذف شد.”).
| Status | Error Type | Reference |
|---|---|---|
| 404 | Not Found | Not-found error |
| 401 | Unauthorized | Authentication error |
| 403 | Forbidden | Permission error |