Clear "Documents" menu

Posted in System

Use SHAddToRecentDocs function with nil as second parameter. Don't forget to add SHlObj in uses chapter.

uses
  Shlobj;
...
procedure TForm1.Button1Click(Sender: TObject);
begin
  SHAddToRecentDocs(SHARD_PATH, nil);
end;