#include "..\script_component.hpp"

if (!hasInterface) exitWith {};

{
	private _diarySubject = _x;
	private _records = player allDiaryRecords _diarySubject;
	if (count _records isEqualTo 0) then {continue};

	{
		private _diaryRecord = _x select -1;
		player removeDiaryRecord [_diarySubject, _diaryRecord];
	} forEach _records;
} forEach [
	EGVAR(fbcb2_main,subjectAssetsFixedWingID),
	EGVAR(fbcb2_main,subjectAssetsRotaryID),
	EGVAR(fbcb2_main,subjectAssetsGroundID)
];