Delete

Deletes the specified variable from the file.

Syntax

Delete(doc, var)

Parameters

Parameter

Type

Description

doc

documentReference

Reference to the document

var

variableReference

Reference to the variable

Return

None.

Note

All the analysis windows are closed before executing this function.

Examples

Python

import nex
doc = nex.GetActiveDocument()
var = doc["Event04"]
nex.Delete(doc, var)

NexScript

doc = GetActiveDocument()
var = doc["Event04"]
Delete(doc, var)