In my authorable component i want to disable the delete permission how can i achieve it. Only developer can delete the component. Author cannot delete the component. Author can only author the component.

I want to remove delete icon based on the user group permission, i.e., there are two user groups A and B for A i want to show delete icon on component where as for B I don't want to show this icon.
Is there a solution to it other than updating "cq:actions string[] edit " in cq:editConfig because that restricts these actions for everyone?