Permanently deletes a sensor reading by ID. This is a hard delete — the record is removed from theDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/GaelCeballos/Smart_Enviro_Backend/llms.txt
Use this file to discover all available pages before exploring further.
sensor_data table and cannot be recovered. Intended for administrative use to correct data entry errors or clean up stale readings.
Endpoint
DELETE/api/sensor-data/{id}
Auth: None required per route configuration. This is part of the public apiResource registration.
Path Parameters
The numeric primary key of the sensor reading to permanently delete. Must correspond to an existing record in the
sensor_data table.Example Request
Responses
200 OK
The reading was found and permanently removed from the database.Always
"success" on a 200 response.Confirmation message:
"Lectura eliminada permanentemente".404 Not Found
No sensor reading with the givenid exists in the database.
Always
"error" on a 404 response.Error message:
"Lectura no encontrada".