Skip to main content Skip to complementary content

Remove a variable

Remove a variable by using the DestroyVariableByName method or the DestroyVariableById method.

Remove a transient variable by using the DestroySessionVariable method.

Script-defined variables cannot be removed using the DestroyVariableById method or the DestroyVariableByName method. See the example below for more information on how to remove a script-defined variable.

Examples

Example 1:  

Example 2:  

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!