Deletes one or more namedstructure definitions from memory.
Rename If present and nonzero, this keyword causes the structure definition to be re-named. DELSTRUCT cannot delete a structure definition if it is currently being used (referenced) by a variable, common block, or other structure definition. If a structure is being used and Rename is given, then the structure definition will be renamed. If the structure is not being used, it will be deleted.
Unnall If nonzero, deletes all unnamed structure definitions not currently being referenced by a variable.
If the structure definition is not currently referenced by any variables, other structure definitions, or common blocks, then the structure is deleted. If any references to structure exist, then, by default, you receive an error message and the structure is not deleted. The Rename keyword overrides this default, and renames the existing structure so that the structure name can be reused. When the Rename keyword is used, the original variables remain valid (continue to reference the renamed structure definition); however, no memory is freed.
Use the STRUCTREF function to determine if a structure is currently referenced by any variables, common blocks, or other structure definitions.
TIP: You cannot delete structure definitions that are system structure definitions, such as !Axis and !Plot, or any structures that begin with an exclamation mark (!). Therefore, if you want to create a new structure that cannot be deleted, begin its name with an exclamation mark (!).
x = {struct1, a:float(0)}
DELVAR, x
DELSTRUCT, {struct1} x = {struct1, a:double(0)}
For more information on structures, see the PV-WAVE Programmer's Guide.