curl --request DELETE \
--url https://api.example.com/api/clientes/:id{
"message": "<string>"
}Permanently delete a public client record
curl --request DELETE \
--url https://api.example.com/api/clientes/:id{
"message": "<string>"
}curl -X DELETE http://localhost:3000/api/clientes/42
const response = await fetch('http://localhost:3000/api/clientes/42', {
method: 'DELETE'
});
const data = await response.json();
{
"message": "Cliente eliminado correctamente"
}
404 Not Found
{
"message": "Cliente no encontrado"
}
500 Internal Server Error
{
"message": "Error al eliminar cliente"
}
citas) associated with the clientcontacto) from the clienthistorial) linked to deleted appointments/home/daytona/workspace/source/src/routes/clientes.routes.js:95