Skip to main content

Delete a team

DELETE 

/management/teams/:id

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

Team removed