original_string: public function delete_course_completion_data() {
          global $DB;
  
          $DB->delete_records('course_completions', array('course' => $this->course_id));
          $DB->delete_records('course_completion_crit_compl', array('course' => $this->course_id));
  
          // Difficult to find affected users, just purge all completion cache.
          cache::make('core', 'completion')->purge();
          cache::make('core', 'coursecompletion')->purge();
      }
code: public function delete_course_completion_data() {
          global $DB;
  
          $DB->delete_records('course_completions', array('course' => $this->course_id));
          $DB->delete_records('course_completion_crit_compl', array('course' => $this->course_id));
  
          // Difficult to find affected users, just purge all completion cache.
          cache::make('core', 'completion')->purge();
          cache::make('core', 'coursecompletion')->purge();
      }
code_tokens: public function delete_course_completion_data ( ) { global $ DB ; $ DB -> delete_records ( 'course_completions' , array ( 'course' => $ this -> course_id ) ) ; $ DB -> delete_records ( 'course_completion_crit_compl' , array ( 'course' => $ this -> course_id ) ) ; // Difficult to find affected users, just purge all completion cache. cache :: make ( 'core' , 'completion' ) -> purge ( ) ; cache :: make ( 'core' , 'coursecompletion' ) -> purge ( ) ; }
docstring: Deletes all course completion completion data.
  
  Intended to be used when unlocking completion criteria settings.
docstring_tokens: Deletes all course completion completion data .