diff --git a/main/inc/lib/course.lib.php b/main/inc/lib/course.lib.php index c289b5a212..9fb4516d73 100755 --- a/main/inc/lib/course.lib.php +++ b/main/inc/lib/course.lib.php @@ -2201,6 +2201,9 @@ class CourseManager Database::query($sql); $sql = "DELETE FROM $table_stats_online WHERE c_id = $courseId"; Database::query($sql); + // Do not delete rows from track_e_default as these include course + // creation and other important things that do not take much space + // but give information on the course history //$sql = "DELETE FROM $table_stats_default WHERE c_id = $courseId"; //Database::query($sql); $sql = "DELETE FROM $table_stats_downloads WHERE c_id = $courseId";