Remove specific property of UML class diagram panel

I have a requirement to remove by clicking on the “+”/"-" button before property name in UML class diagram property panel. Currently it is a plain text. Want to know if there is a any button available to remove a text from a panel. Any help on this is much appreciated

I need to provide this feature to the “+” symbols marked in red box in below screenshot

Here’s a very minimal example of removing an item from an item array using a button. The most relevant section of code is the click function for the button in the itemTemplate. I don’t know your use case, but please be aware that the symbols in the UML diagram refer to “visibility” (private, protected) of the properties/methods.

Thank you for your help. It worked