/**
  * Delete record and all related data
  *
  * @access public
  * @static
  *
  * @param int record id
  */
 public static function _delete($a_record_id)
 {
     global $ilDB;
     // Delete fields
     ilAdvancedMDFieldDefinition::_deleteByRecordId($a_record_id);
     $query = "DELETE FROM adv_md_record " . "WHERE record_id = " . $ilDB->quote($a_record_id, 'integer') . " ";
     $res = $ilDB->manipulate($query);
     $query = "DELETE FROM adv_md_record_objs " . "WHERE record_id = " . $ilDB->quote($a_record_id, 'integer') . " ";
     $res = $ilDB->manipulate($query);
 }