Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
gireesh1216
Creator II
Creator II

Remove Variables From Script

Hi, how can I remove variables from script level?

9 Replies
Anonymous
Not applicable

If you assign a variable to null() it will be removed :

     Let vYourVariable = null() ;

rubenmarin

As Bill said you only need to remove the variable value, this also works:

Let vYourVariable =;

So far I know, if the variable is already created you have to manually delete it from the document.

Anonymous
Not applicable

If this question is more about deleting the existing variable objects (and not resetting their value) that you see in the Variable Overview window, then the only way would be to click on individual variable and click remove one by one.

jagan
Luminary Alumni
Luminary Alumni

Hi,

You can try like this

LET vVariableName =;

OR

LET vVariableName  = Null();

Regards,

Jagan.

Chanty4u
MVP
MVP

jonathandienst
Partner - Champion III
Partner - Champion III

These techniques, including

Set vVar =;

will remove the variable when the script terminates, providing that they did not exist before the script started. So you may need to delete the variables manually for the "deletion" to work.

This is so that you can remove script-only variables that are not required in the front end.

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
ramasaisaksoft

Hi Gireesh,

1)First i have a doubt y you wan't to delete variables? those are not harm full to your app

just skip the usage of variables in Expression

2) All variables are located at Settings->Variable over view(Ctrl+Alt+V)->here you can select the variable  and click on Remove button and save the app

jonathandienst
Partner - Champion III
Partner - Champion III

You may have variables used in your load script that are not relevant to the front end. The delete options outlined above will remove these when the script run is complete. That reduces the clutter in the variable overview or in the expression editor variable list in the front end. It no more than housekeeping and (IMO) good practice.

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
gireesh1216
Creator II
Creator II
Author

Thank you all