The property which we can use , in this case may be is : cls
[example : /libs/foundation/components/page/tab_basic/items/vanity/items/vanityPath]
It allows to add custom class on component container.
This class then can be used by css/js (which loads only in author environment ) to hide remove icon.
~Thanks.