I am actually using a modified version of lazarus mru component.
Since I want to add a "clear menu" item I slightly modified mrumanager.
IN ShowRecentFiles I removed:
FMIRecent.clear;
and replaced with
for I:=FMIRecent.Count - 1 downto 0 do
if (FMIRecent.Items) is TRecentMenuItem then
FMIRecent.Delete(I);
In order to delete only items typed as TRecentMenuItem and not any menu item.
And I replaced:
FMIRecent.Add(M);
with
FMIRecent.Insert(I, M);
In order to let the clear menu item as the last item.
Thanks for the hints.