@DELETE
  @Path("{groupName}")
  @Produces("text/plain")
  @ApiOperation(value = "Delete group", nickname = "GroupService#deleteGroup", notes = "Delete group resource.")
  @ApiResponses(value = {
    @ApiResponse(code = 200, message = "Successful operation"),
    @ApiResponse(code = 500, message = "Server Error")}
  )
  public Response deleteGroup(@Context HttpHeaders headers, @Context UriInfo ui,
                              @ApiParam(value = "group name", required = true) @PathParam("groupName") String groupName) {
    return handleRequest(headers, null, ui, Request.Type.DELETE, createGroupResource(groupName));
  }
Deletes a group.
Handles:  DELETE /groups/{groupName} requests.

@param headers      http headers
@param ui           uri info
@param groupName    the group name
@return information regarding the deleted group
ambari-server/src/main/java/org/apache/ambari/server/api/services/groups/GroupService.java