DELETE ENTITY-TYPE [ HP SYSTEM DICTIONARY XL SDMAIN ] MPE/iX 5.0 Documentation
HP SYSTEM DICTIONARY XL SDMAIN
DELETE ENTITY-TYPE
Deletes an entity type.
Syntax
DEL[ETE] E[NTITY-]T[YPE] entity-type-name
[;PURGE]
.
Parameters
entity-type-name Name of the entity type to be deleted.
PURGE If you specify this keyword and any relationship
types that involve the specified 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 structure. 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 serious 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 entity-type terminal. Because the
keyword PURGE is specified, if any relationship types that involve the
entity type terminal exist, the relationship types are also deleted.
>DELETE ENTITY-TYPE terminal;
>>PURGE.
>
MPE/iX 5.0 Documentation