Skip to main content
DELETE
/
api
/
contacto
/
:id
Delete Contact Message
curl --request DELETE \
  --url https://api.example.com/api/contacto/:id
{
  "message": "<string>",
  "400 Bad Request": {},
  "500 Internal Server Error": {}
}
This endpoint permanently deletes a contact message from the database.

Authentication

No authentication required based on the source code.

Path Parameters

id
number
required
The ID of the contact message to delete

Response

message
string
Success message: “Mensaje eliminado correctamente”

Error Responses

400 Bad Request
object
Returned when the ID parameter is invalid
{
  "message": "ID inválido"
}
500 Internal Server Error
object
Returned when a server error occurs (including if message doesn’t exist)
{
  "message": "Error al eliminar mensaje"
}

Example Request

curl -X DELETE https://api.example.com/api/contacto/78 \
  -H "Content-Type: application/json"

Example Response

{
  "message": "Mensaje eliminado correctamente"
}

Notes

  • This operation is permanent and cannot be undone
  • If the message doesn’t exist, a 500 error will be returned
  • The ID must be a valid integer

Build docs developers (and LLMs) love