/// <summary> /// Delete group /// </summary> /// <param name="currentWeb"></param> /// <param name="departmentItem"></param> public void DeleteGroup(SPWeb currentWeb, Department department) { if (department != null) { //Delete administrators group SPHelper.DeleleSPGroup(currentWeb, string.Format("{0} {1}", department.Name, StringConstant.Group.Administrators)); //Delete contributor group SPHelper.DeleleSPGroup(currentWeb, string.Format("{0} {1}", department.Name, StringConstant.Group.Contributors)); //Delete member group SPHelper.DeleleSPGroup(currentWeb, string.Format("{0} {1}", department.Name, StringConstant.Group.Members)); } }