Delete an Element
- Last UpdatedNov 13, 2025
- 2 minute read
You can delete either the entire Current Element or some or all of its offspring. When you delete the Current Element, you also delete all of its offspring (that is, its members, their members, etc.) from the hierarchy. The command must therefore be used with care. When an element has been deleted, its Owner becomes the new Current Element.
As a safeguard against accidental deletion of parts of a DB, the deletion function operates only on the Current Element. As further safeguards, the DELETE command word must be entered in full and the command syntax requires that you confirm the generic type of the Current Element. Furthermore, access to the required element and its subsequent deletion must be specified in two separate command lines.
-
To delete the Current Element and all its offspring, enter
DELETE element _type
For example, to delete a Nozzle, make the Nozzle the Current Element and then enter
DELETE NOZZ
The Equipment which owned the Nozzle becomes the Current Element.
-
To delete a complete Zone, including all Equipment, Piping, Structures etc. owned by it, make the Zone the Current Element and then enter
DELETE ZONE
The Site which owned the deleted Zone becomes the Current Element.
-
To delete only specified members of the Current Element, use one of the following forms of the command syntax:
DELETE element_type MEMbers
(deletes all members)
DELETE element_type MEMbers integer
(deletes one member)
DELETE element_type MEMbers integer TO integer
(deletes a range of members)
Consider the following examples, where the Current Element is /BRAN1 with the Member List illustrated in Figure 10-2:
|
DELETE BRAN MEMBERS |
Deletes all components from the Branch, leaving only the Branch Head and Tail |
|
DELETE BRAN MEMBER 6 |
Deletes only /TEE1 |
|
DELETE BRAN MEMBERS 5 TO 7 |
Deletes /ELBO2, /TEE1 and /ELBO3 |