Delete a device
DELETE/management/devices/:id
Delete handles HTTP DELETE requests to remove a device resource by its ID. It parses the "id" parameter from the request URL, validates it, and calls the deviceService.Delete method. If the ID is invalid or the deletion fails, it returns a 422 Unprocessable Entity status with an error message. On successful deletion, it returns a 200 OK status with an empty response body.
Request
Responses
- 200
- 422
Device removed
Unprocessable Entity