HP System Dictionary/XL SDMAIN Reference Manual (32256-90001)

4-72
[;PURGE]
.
Parameters
entity-type-name Name of the entity type to be deleted.
PURGE If you specify thiskeyword and any relationshiptypes that involvethespecified entity
type exist, then the relationship types are also deleted. If you do not specify PURGE,
and the entity type is involved in a relationship type, the operation fails.
Description
When an entity type is deleted, all entities of that type are deleted. Also, all relationship-types involving
the deleted entity-types and all relationships of these types are deleted.
Open Mode: Customization
Scope: DA scope or the entity type's owner scope
WARNING When a version is in archival status, it is considered frozen, protecting its data
from modification. However, archival status does not freeze the dictionary struc-
ture. Therefore, if the dictionary structure is changed, the structure of archival
versions is also changed. In the case of additions to the dictionary structure, no se-
rious problems will result. However, deletions from the dictionary structure may
be detrimental archival versions. Therefore, this should be considered when mak-
ing deletions that affect dictionary structure.
Example
The following example deletes the entity-type terminal. Because the keyword PURGE is speciļ¬ed, if any
relationship types that involve the entity type terminal exist, the relationship types are also deleted.
>DELETE ENTITY-TYPE terminal;
>>PURGE.
>
DELETE RELATIONSHIP
Deletes a relationship.
Syntax
DEL[ETE] R[ELATIONSHIP] entity-name1
,entity-name2
[,entity-name3 ]
[,entity-name4 ]
[,entity-name5 ]
[,entity-name6 ]
;R[ELATIONSHIP-]T[YPE] = entity-type-name1
,entity-type-name2