To delete a forum group, you must perform the following:
NOTE: To delete multiple groups, query them and execute the code below for each group.
NOTE: If you try to delete a group that has forums in it, you will get a Telerik.Sitefinity.Forums.DeleteForumGroupWithForumsException exception. Before deleting the group you have either to remove the forums from the group or to delete them first. For more information, see For developers: Remove forums from forum groups.
Here is a code example:
ForumsManager forumsManager = ForumsManager.GetManager();
ForumGroup forumGroup = forumsManager.GetGroup(groupId);
Back To Top