Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/LucaXGit/proyecto-final-jaz/llms.txt

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

Sending a DELETE request to the ProductoServlet endpoint permanently removes a product from the productos table by its primary key. The product ID is passed as a query-string parameter. If the deletion succeeds the servlet returns {"success": true}; if it fails (e.g., the ID does not exist or a database error occurs) it returns {"success": false}.

Request

Method: DELETE
URL: http://localhost:8080/ServidorTiendaPlayeras/ProductoServlet?id={id}

Parameters

id
integer
required
The primary-key ID of the product to permanently delete.

curl Example

curl -X DELETE "http://localhost:8080/ServidorTiendaPlayeras/ProductoServlet?id=1"

PHP (Laravel) Example

The PlayerasController::destroy() method appends the id directly to the base URL:
Http::delete($this->apiUrl . "?id={$id}");

SQL Executed

DELETE FROM productos WHERE id = ?

Response

success
boolean
true if the product was deleted successfully; false if the DELETE statement failed.
Success:
{ "success": true }
Failure:
{ "success": false }
Deletion is permanent. The servlet executes DELETE FROM productos WHERE id = ? with no soft-delete, archive, or undo mechanism. Once a product is deleted, it cannot be recovered through this API.

Build docs developers (and LLMs) love