Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
m_perreault
Creator III
Creator III

Deleting Variables Defined in the Script

Hi All,


Is there a way to delete variables defined in the script so that they will not show up as an option in the expression editor?

 

For example in my script I set a variable.

let vTest = Today();

 

I then decide I don't want this variable.  In my script I have tried to change the value of the variable to nothing

let vTest =;

 

But when I am creating an expression and start typing v... I stil see vTest as a possible variable.

 

Thanks,

Mark

Labels (1)
1 Solution

Accepted Solutions
m_perreault
Creator III
Creator III
Author

After setting the variable value =; in the script you can then delete via the variable dialogue box in the UI

View solution in original post

2 Replies
m_perreault
Creator III
Creator III
Author

After setting the variable value =; in the script you can then delete via the variable dialogue box in the UI

pranam-k
Contributor II
Contributor II

How can I delete a variable from the UI using "DestroyVariableById" method in script?