Routines (alphabetical) > Routines: D > DELVAR

# DELVAR

The DELVAR procedure deletes variables from the main IDL program level. DELVAR frees any memory used by the variable and removes it from the main program’s symbol table. The following restrictions apply:

- DELVAR can only be called from the main program level.
- If a main program is created with the .RUN or .RNEW command, then each time DELVAR is called, this main program is erased. Variables that are not deleted remain unchanged.

## Examples

Suppose that the variable Q is defined at the main program level. Q can be deleted by entering:

DELVAR, Q

## Syntax

DELVAR, V1, ..., Vn

## Arguments

### Vi

One or more named variables to be deleted.

## Version History

Pre 4.0 | Introduced

## See Also

TEMPORARY