Skip to main content

Delete a driver

DELETE 

/management/drivers/:id

Delete handles HTTP DELETE requests to remove a driver resource by its ID. It parses the "id" parameter from the request URL, validates it, and calls the driverService.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

Driver removed