CoursePropertyManager cpm = PersistingCoursePropertyManager.getInstance(course);
Property forumKeyProperty = cpm.findCourseNodeProperty(this, null, null, FORUM_KEY);
if (forumKeyProperty == null) return; // no forum created yet
Long forumKey = forumKeyProperty.getLongValue();
ForumManager.getInstance().deleteForum(forumKey); // delete the forum
cpm.deleteProperty(forumKeyProperty); // delete the property
}
/**
* Update the module configuration to have all mandatory configuration flags
* set to usefull default values