Remove Intermediate/Boundary Event

I created service task and added intermediate/boundary event to it.

image

Now I change the type to Usertask
image

image

How to remove bouundary/intermediate event when i change from Service Task to UserTask.

We have a behavior for this one, so you could update the canAttach rule to ensure you can’t attach elements to a user task.