delete var key

delete var key key


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}.


Deletes the variables that have been saved using a key.

Syntax Description

key Specifies that variables associated with the specified key must be deleted.



Usage Guidelines

CLI scripting must be enabled to use this command. The user is responsible for generating unique keys for each variable. The system has a limited amount of memory to store these variables.


The following command deletes all variables associated with the key “red:”
delete var key red


This command was first available in ExtremeXOS 11.6.

Platform Availability

This command is available on the Summit X450-G2, X460-G2, X670-G2, X770, and ExtremeSwitching X440-G2, X620, X690, X870 series switches.