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

4-74
PURGE If you specify this keyword and any relationship types that involve the specified rela-
tionship class exist, then the relationship type is also purged. If you do not specify
PURGE, and the relationship class is involved in a relationship type, the operation
fails.
Description
When both relationship class and relationship type are deleted, all relationships of that type are also
deleted.
Open Mode: Customization
Scope: DA scope or the relationship class'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 to archival versions. Therefore, this should be considered when
making deletions that affect dictionary structure.
Example
The following example deletes the relationship class generates. Because the keyword PURGE is not
speciļ¬ed, the operation will fail if generates is involved in any relationship types.
>DELETE RELATIONSHIP-CLASS generates.
>
DELETE RELATIONSHIP-TYPE
Deletes a relationship type.
Syntax
DEL[ETE] R[ELATIONSHIP-]T[YPE] entity-type-name1
,entity-type-name2
[,entity-type-name3 ]
[,entity-type-name4 ]
[,entity-type-name5 ]
[,entity-type-name6 ]
[;R[ELATIONSHIP-]C[LASS] = relation-class-name ]
.
Parameters
entity-type-name(N) Name of the entity type involved in the relationship type to be deleted.
relation-class-name Name of the relationship class.