Skip to main content
DELETE
/
rutas
/
{id}
curl -X DELETE https://api.tesisrutas.com/rutas/507f1f77bcf86cd799439020 \
  -H "Authorization: Bearer YOUR_TOKEN"
{
  "mensaje": "Ruta eliminada correctamente"
}
Removes a tourist route from the database. This operation is permanent and cannot be undone.

Authentication

Requires Editor role or higher.
id
string
required
The unique identifier of the route to delete
mensaje
string
Confirmation message indicating successful deletion
curl -X DELETE https://api.tesisrutas.com/rutas/507f1f77bcf86cd799439020 \
  -H "Authorization: Bearer YOUR_TOKEN"
{
  "mensaje": "Ruta eliminada correctamente"
}

Important Notes

This operation permanently deletes the route. There is no undo functionality.
  • Deletion is permanent and immediate
  • Referenced POIs are NOT deleted (only the route itself)
  • No soft-delete mechanism is in place
  • Consider archiving important routes instead of deleting

Error Responses

  • 404 Not Found: Route does not exist or deletion failed
  • 401 Unauthorized: Missing or invalid authentication token
  • 403 Forbidden: User does not have Editor role
  • 422 Unprocessable Entity: Invalid route ID format

Build docs developers (and LLMs) love