When records are accessed using Apex or through the user interface they are added to the 'Recent Items' list in Classic or the 'Recent Records' component in Lightning so users can easily Open Items You’ve Recently Viewed.
It's not currently possible to directly setup or configure which object records are included in the most recently used (MRU) lists.
You can indirectly prevent a custom object's records from appearing in these lists by deleting the object's custom tab. This is only suitable when users do not need to search for or have direct access to the object's records and will not remove an object's previously accessed records or entries from the list.
1. Click Setup.
2. Click Create.
3. Click Tabs.
4. Click Del on the custom tab of your choice.
1. Click the gear icon.
2. Click Setup.
3. On the Quick Find box, enter Tabs.
4. Click Del on the custom tab of your choice.
Note: If user's need direct access the object's records, an administrator can implement a custom link to the Tab's URL for access.
However, if this is not acceptable and your object's custom tab cannot be deleted, there are currently several Ideas on our Ideas Exchange which we would recommend promoting so that we may see this functionality considered for inclusion in a future release here:
Recent Items: ability to define which objects should be displayed here
Don't update "Recent" list with object visited by Apex code
Provide an option where VisualForce pages that insert / upsert records do NOT cr
000384970

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.