Remove a group from the groups page

@param model
@param groupId
@return
761928
@RequestMapping(value = "api/group/{groupId}", method = RequestMethod.DELETE)
    public
    @ResponseBody
    List<Group> removeGroup(Model model,
                                 @PathVariable int groupId) {
        pathOverrideService.removeGroup(groupId);
        return pathOverrideService.findAllGroups();
    }
1234904
@RequestMapping(value = "api/servergroup/{id}", method = RequestMethod.DELETE)
    public
    @ResponseBody
    List<ServerGroup> deleteServerGroup(Model model,
                                             @PathVariable int id,
                                             @RequestParam(value = "profileId", required = false) Integer profileId,
                                             @RequestParam(value = "clientUUID", required = false) String clientUUID,
                                             @RequestParam(value = "profileIdentifier", required = false) String profileIdentifier) throws Exception {
        if (profileId == null && profileIdentifier == null) {
            throw new Exception("profileId required");
        }
        if (profileId == null) {
            profileId = ProfileService.getInstance().getIdFromName(profileIdentifier);
        }

        int clientId = ClientService.getInstance().findClient(clientUUID, profileId).getId();

        ServerGroup group = ServerRedirectService.getInstance().getServerGroup(id, profileId);
        ServerRedirectService.getInstance().deleteServerGroup(id);
        return ServerRedirectService.getInstance().tableServerGroups(clientId);
    }
586373
@Override
	public void removeByGroupId(long groupId) {
		for (CPOptionCategory cpOptionCategory : findByGroupId(groupId,
				QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(cpOptionCategory);
		}
	}
543423
@Override
	public CPDefinitionGroupedEntry removeByUUID_G(String uuid, long groupId)
		throws NoSuchCPDefinitionGroupedEntryException {
		CPDefinitionGroupedEntry cpDefinitionGroupedEntry = findByUUID_G(uuid,
				groupId);

		return remove(cpDefinitionGroupedEntry);
	}
405417
@Override
	public void removeByGroupId(long groupId) {
		for (CommerceNotificationTemplate commerceNotificationTemplate : findByGroupId(
				groupId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(commerceNotificationTemplate);
		}
	}
135190
function(sGroup) {
        this.logger.log("Removing from group: " + sGroup);
        if (this.groups[sGroup]) {
            delete this.groups[sGroup];
        }

        this.DDM.removeDDFromGroup(this, sGroup);
    }
793557
public String remove(String group, Object key) {
		return this.groupedMap.remove(group, Convert.toStr(key));
	}
487720
@Override
	public void removeByGroupId(long groupId) {
		for (CPTaxCategory cpTaxCategory : findByGroupId(groupId,
				QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(cpTaxCategory);
		}
	}
1234406
@Override
	public void removeByG_T(long groupId, int type) {
		for (CPMeasurementUnit cpMeasurementUnit : findByG_T(groupId, type,
				QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(cpMeasurementUnit);
		}
	}
778150
@Override
	public void removeByGroupId(long groupId) {
		for (CommerceTierPriceEntry commerceTierPriceEntry : findByGroupId(
				groupId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(commerceTierPriceEntry);
		}
	}
4568
public boolean deleteGroup(String groupName) {
		if (groupsFile != null) {
			lock.writeLock().lock();
			try {
				reloadGroupsFromFile();
				groups.remove(groupName);
				return writeGroupFile();
			} finally {
				lock.writeLock().unlock();
			}
		} // end if resourcePath not null
		return false;
	}
620391
@Override
	public void removeByGroupId(long groupId) {
		for (CommercePriceList commercePriceList : findByGroupId(groupId,
				QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(commercePriceList);
		}
	}
1323993
public void removeCorporateGroupId(final String organizationId, final String corporateGroupId) {
        final DbOrganization dbOrganization = getOrganization(organizationId);

        if(dbOrganization.getCorporateGroupIdPrefixes().contains(corporateGroupId)){
            dbOrganization.getCorporateGroupIdPrefixes().remove(corporateGroupId);
            repositoryHandler.store(dbOrganization);
        }

        repositoryHandler.removeModulesOrganization(corporateGroupId, dbOrganization);
    }
64731
@DELETE
    @Path("/{name}" + ServerAPI.GET_CORPORATE_GROUPIDS)
    public Response removeCorporateGroupIdPrefix(@Auth final DbCredential credential, @PathParam("name") final String organizationId, final String corporateGroupId){
        LOG.info("Got an remove a corporate groupId prefix request for organization " + organizationId +".");
        if(!credential.getRoles().contains(DbCredential.AvailableRoles.DATA_UPDATER)){
            throw new WebApplicationException(Response.status(Response.Status.UNAUTHORIZED).build());
        }

        if(corporateGroupId == null || corporateGroupId.isEmpty()){
            LOG.error("No corporate GroupId to remove!");
            return Response.serverError().status(HttpStatus.BAD_REQUEST_400).build();
        }

        getOrganizationHandler().removeCorporateGroupId(organizationId, corporateGroupId);

        return Response.ok("done").build();
    }
495954
@Override
	public void removeByGroupId(long groupId) {
		for (CProduct cProduct : findByGroupId(groupId, QueryUtil.ALL_POS,
				QueryUtil.ALL_POS, null)) {
			remove(cProduct);
		}
	}
368454
public Response deleteUserFromGroup(String username, String groupName) {
		return restClient.delete("users/" + username + "/groups/" + groupName,
				new HashMap<String, String>());
	}
754950
public int deleteByRootComponentIdAndGroupId(DbSession dbSession, long rootComponentId, @Nullable Integer groupId) {
    return mapper(dbSession).deleteByRootComponentIdAndGroupId(rootComponentId, groupId);
  }