original_string: protected static function delete($record) {
          global $DB;
  
          core_tag_tag::delete_instances($record->component, $record->itemtype);
  
          $DB->delete_records('tag_area',
                  array('itemtype' => $record->itemtype,
                      'component' => $record->component));
  
          // Reset cache.
          cache::make('core', 'tags')->delete('tag_area');
      }
code: protected static function delete($record) {
          global $DB;
  
          core_tag_tag::delete_instances($record->component, $record->itemtype);
  
          $DB->delete_records('tag_area',
                  array('itemtype' => $record->itemtype,
                      'component' => $record->component));
  
          // Reset cache.
          cache::make('core', 'tags')->delete('tag_area');
      }
code_tokens: protected static function delete ( $ record ) { global $ DB ; core_tag_tag :: delete_instances ( $ record -> component , $ record -> itemtype ) ; $ DB -> delete_records ( 'tag_area' , array ( 'itemtype' => $ record -> itemtype , 'component' => $ record -> component ) ) ; // Reset cache. cache :: make ( 'core' , 'tags' ) -> delete ( 'tag_area' ) ; }
docstring: Completely delete a tag area and all instances inside it
  
  @param stdClass $record
docstring_tokens: Completely delete a tag area and all instances inside it