Skip to main content

Delete a fleet

DELETE 

/management/fleets/:id

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

Fleet removed