Skip to main content
Use DELETE /plants/{id} to permanently remove a plant from the store. This action is irreversible.
DELETE https://api.lymo.jp/plants/{id}

Path parameters

id
integer
required
The unique identifier of the plant to delete. Obtain this from the list or create endpoints.

Example request

curl -X DELETE https://api.lymo.jp/plants/42 \
  -H "Authorization: Bearer YOUR_API_KEY"

Response

A successful deletion returns 204 No Content with an empty body.

Error responses

Status codeDescription
400 Bad RequestThe id path parameter is not a valid integer.
401 UnauthorizedThe request is missing a valid Bearer token.
404 Not FoundNo plant with the given ID exists.
Deleting a plant is permanent and cannot be undone. Make sure you are targeting the correct ID.