DELETE /plants/{id} endpoint permanently removes the plant with the given ID from the store. A successful deletion returns a 204 No Content response with an empty body — there is no JSON payload on success. If the ID does not exist or the request is otherwise invalid, the API returns a 400 error. This action is irreversible, so confirm the correct ID before sending the request.
Path parameters
The unique integer ID of the plant to delete. This is the same
id you provided when creating the plant.Response
204 — success
The plant was deleted. The response body is empty.400 — error
Numeric error code identifying the type of failure.
Human-readable description of the error.