You can delete Java™ elements from projects directly from
the diagram editor.
To delete Java elements from a project, in the diagram
editor, right-click Java elements; then click Delete
from Project.
Note: When you delete Java elements from a project, the Java elements
are deleted from both the diagram and the project.