Remove Boundary Event

Hi,

My requirement is to restrict user from adding intermediate event to Generic Task, I added a rule and achived this.

However when I add intermediate event to service task and change service task back to Generic task, I am unable to remove intermediate event.

How to remove the intermediate event when i change service task to generic task.

Thanks
Vijay

Duplicate of Remove Intermediate/Boundary Event?