How to hide some context menu items?

Is this what you’re looking for?