Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/ricpalomino/spring-boot/llms.txt

Use this file to discover all available pages before exploring further.

The delete endpoint permanently removes a product from the in-memory store using its numeric ID. The HTTP response status is 200, but the responseCode field in the body is "204" to reflect the semantic of a successful deletion. Because the store is held in memory, all data is lost when the application restarts — deleted products cannot be recovered.
Deletion is permanent and cannot be undone. Once a product is removed from the in-memory store, it is gone for the lifetime of the running process. There is no trash, soft-delete, or recovery mechanism.

Path parameters

id
integer
required
The numeric ID of the product to delete. Must correspond to an existing product in the store.

Request

curl --request DELETE \
  --url http://localhost:8080/api/v1/products/1

Response fields

responseCode
string
HTTP status code as a string. Returns "204" on successful deletion.
responseMessage
string
Human-readable message describing the result. Returns "Producto eliminado correctamente" on success.
data
null
Always null for delete responses. No product data is returned after deletion.

Success response — 200

{
  "responseCode": "204",
  "responseMessage": "Producto eliminado correctamente",
  "data": null
}

Not found response — 404

Returned when no product with the given ID exists in the store.
{
  "responseCode": "404",
  "responseMessage": "Producto no encontrado con id: 99",
  "data": null
}

Build docs developers (and LLMs) love