how to eliminate the section recent files when I rightclick on icon on taskmanager

on my laptop using KDE I would like to eliminate the section recent files in the poup window when I rightclick on firefox and chromium and dolphin and gwenview icon on taskmanager, maybe it happens also in other programs, it doesn’t happens in chrome and brave browsers, I would like to eliminate for all this section please, how can I get it??

If, when right-clicking on the icon, you choose the option “forget recent files”, the next time you right-click on the icon, the “recent files” section will not be there …

There is a setting for all applications in System Settings. (Hope the translation is correct.)

Desktop - Desktop Behaviour - Activities - Tab: Privacy - recent files:do not remember