Some features described here are available in Ultimate edition only.
IntelliJ IDEA
suggests two ways of deleting elements from diagram:
Remove node elements from view, while leaving the underlying source code intact. This option can be helpful,
if you want to explore a certain group of nodes, and remove the unnecessary ones from view.
Delete node elements from project.
To remove elements from view
In the diagram, select one or more elements to be deleted.