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.
- In the diagram, select the element to be deleted.
- Use the Safe Delete refactoring (Alt+Delete) to delete selected classes from project.