Remove Boundary Event Programatically

Duplicate of Remove Intermediate/Boundary Event?