delete var

delete var varname
Note

Note

This is a script command and operates only in scripts or on the command line when scripting is enabled with the following command: enable cli scripting {permanent}.

Description

Deletes a variable.

Syntax Description

varname Specifies the name of the scripting variable to be deleted.

Default

N/A.

Usage Guidelines

The format of a local variable (case insensitive) is: $VARNAME.

Example

The following example deletes local variable x:
delete var x

History

This command was first available in ExtremeXOS 12.1.

Platform Availability

This command is available on ExtremeSwitching X435, X440-G2, X450-G2, X460-G2, X465, X590, X620, X670-G2, X690, X695, X870, 5320, 5420, and 5520 series switches.