
When working Database First or Model First, you might end up with elements in the relational model data, like tables and table fields which are no longer used by the Abstract Entity Model. There are two different actions which can be taken:
Not all elements can be deleted or excluded. The elements which can be excluded are:
The elements which are delete-able are:
To exclude an excludable element, right-click it in the Catalog Explorer and select Exclude From Project from the context menu. The element is removed from the project immediately. Any mappings referring to the element or containing elements (if you exclude a catalog / schema for example), are now 'orphaned' and invalid.
To delete a delete-able element, right-click it in the Catalog Explorer and select Toggle Marked for Deletion Flag from the context menu. When an element is marked for deletion, it's grayed out in the Catalog Explorer and it's not usable in mappings. Any mapping referring to the 'deleted' element is invalid. Elements which have their Marked for Deletion flag set are exportable in an Update script to make the deletion final. Exporting these changes will also remove the elements from the project.
It might not always be obvious or easy to determine which elements can be deleted and which elements can be excluded. To make this simple, the designer has a feature which can automate the deletion and exclusion of orphaned elements in the project. An orphaned element is an element which is not used in any mapping.
The automated process is controlled by two Project Properties: ExcludableOrphanedElementDetectedAction for elements which are excludable and NonExcludableOrphanedElementDetectedAction for elements which aren't excludable.
The values the settings are set to are applied on orphaned elements every time a full Project Validation process with adjustment of relational model data is performed. By default a warning is issued, which offers you through the Error List docked at the bottom of the designer per warning a list of suggestions what to do. While this might be handy for a small number of elements, for larger number of elements, it's more efficient to automate it.