Hi Isabel,
At this time, it would require custom local development to be able to filter certain levels of description from the treeview.
I have seen this done once before with custom code - take a look at this example from the World Bank Group Archives site:
It appears that there is just one series with no descendants in this archival unit. However, if you read the series description, you can see that an inventory list is available (there's also a button link in the right context menu). Clicking that will take you to a list of files that don't display in the treeview.
WBGA has some custom code that filters items and files from appearing in their treeview. The tradeoff is that some users may not realize that further details (or titles at least) are available outlining the contents of the current level.
One thing you can do without development in 2.6, if you're using the full-width treeview instead of the sidebar option, is to set the treeview to display collapsed and hidden by default when users first arrive on the page. The Bernard Becker Medical Library Archives at Washington University in St. Louis (WUSTL) sponsored this enhancement, and you can see it in use in their catalog, as in this example:
This wouldn't remove the items associated with your digital objects from the treeview, but it could still be helpful in simplifying the user experience when landing on a page. For more information on this setting, see:
Note that the digital object carousel would still appear, showing thumbnails of lower-level digital objects. However, this is a configurable page element, and it can be hidden / disabled via the settings as well, if desired. See: