# Delete a food

> Removes a food from your foods. Past meals and recipes keep it.

`DELETE /foods/:id`

Needs the **Read and write** permission. Only foods in your `mine` library can be deleted. Meals and recipes that use the food keep the version they were saved with, so nothing you logged changes.

## Path parameters

| Parameter | Type | Description |
| --- | --- | --- |
| `id` | string | Required. The food's id. |

## Response

`204` with no body, or `404` with `food_not_found` when it doesn't exist or isn't yours.

## Example

```sh
curl -X DELETE https://app.splot.health/v1/foods/9d2e7c1a-4b6f-4e8d-a3c5-1f7b9e2d4a60 \
  -H "Authorization: Bearer $SPLOT_API_KEY"
```
