CMF-38: Added an ability to remove a diagram element