Delete Components

Return to Introduction  Previous page  Next page

You can delete the components of a model from a diagram or from the Project Browser.

Delete From a Diagram

A diagram can contain elements, packages and other diagrams. To delete any of these from the diagram, click on it and press [Delete] on the keyboard.

Note: Remember that the contents of the model are listed in the Project Browser. If you delete something from a diagram, it is not deleted from the Project Browser. This is because you can use the same component in several diagrams at once, so you only remove the representation of the component from a diagram.

To delete a connector from a diagram, click on it and press [Delete]. This time, Enterprise Architect prompts you to select whether to delete the connector or just hide it. Unlike elements,   the same connector is not reapplied in several places, so if you delete one it is removed completely from the model.

Note: Connectors can get confusing on a complex diagram, so it is useful to hide some of them to clarify a specific aspect of a more complex picture. To identify and reveal hidden connectors, see the Links topic. However, first you should become more familiar with element and connector properties, through the Quick Start - Define Elements and Relationships topic.

Delete From Project Browser

To delete a package, diagram or element from the Project Browser, right-click on the component and select the Delete <name> menu option.

For a package, this completely removes the package and all its contents - diagrams, child packages and elements - from the model.

For an element, this completely removes the element and its properties, connectors, child elements and child diagrams from the model, and from every diagram that contains it.

For a diagram, this completely removes the diagram and connectors from the model, but not the diagram's component elements. They remain in the parent package.

Additional Information

Click on the links for additional information on deleting elements and model views in Enterprise Architect.