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 all platforms.