course.getCourseEnvironment().getCourseGroupManager().deleteCourseGroupmanagement();
// delete all remaining course properties
course.getCourseEnvironment().getCoursePropertyManager().deleteAllCourseProperties();
// delete course calendar
CalendarManager calManager = CalendarManagerFactory.getInstance().getCalendarManager();
calManager.deleteCourseCalendar(course);
// cleanup cache
removeFromCache(res.getResourceableId());
loadedCourseStatistics.remove(res.getResourceableId());
//TODO: ld: broadcast event: DeleteCourseEvent