The file you need to modify is Core>Common>PilotData.class.php
In my file its around line 513 but yours may be different,
/**
* Completely delete a pilot
*
* @param int $pilotid Pilot ID
* @return mixed This is the return value description
*
*/
public static function deletePilot($pilotid) {
$sql = array();
unset(self::$pilot_data[$pilotid]);
$tables = array(
'acarsdata', 'bids', 'pirepcomments', 'pireps',
'fieldvalues', 'groupmembers', 'pilots'
);
foreach ($tables as $table) {
$sql = 'DELETE FROM '.TABLE_PREFIX.$table.' WHERE `pilotid`='.$pilotid;
$res = DB::query($sql);
}
return true;
}
Thats the code so just take the pireps and pirepcomments out of the array.
NOT TESTED please use at your peril.