Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Clear up all variables

Hi,

I was wondering if there is any way to clear (let vSales = Null()) all variables in one shot or loop.

Any idea? thanks in advace.

Marc.

1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

So, my conclusion is that there is no way to do it in script.

Marc.

I select correct just to close thread.

View solution in original post

6 Replies
yduval75
Partner - Creator III
Partner - Creator III

In the application directly.
Settings / Variable Overview. You select the first variable and press SHIFT to the last variable. Then select Remove

ali_hijazi
Partner - Master II
Partner - Master II

in the script if you put let vSales = null() before your first reload it won't appear in the variable overview window

but once it is there (maybe you reloaded the document before you put the setting of the variable to null)

you need to manually remove the variable from the variable overview

I can walk on water when it freezes
Anonymous
Not applicable
Author

Sorry Yoann, I meant in script. Just wondering if possible...

Marc.

Anonymous
Not applicable
Author

So, my conclusion is that there is no way to do it in script.

Marc.

I select correct just to close thread.

ValeriyaBartosh
Partner - Contributor III
Partner - Contributor III

Thank you!

cristiand
Contributor III
Contributor III

Hi,

Not possible from the script far as I know, but you can do it from the app with help of an external script.

"WithDave" has created a chrome bookmark (bookmarklet) that allow us to delete all the variables from QS apps.

I tried it with QS Nov-21 and it is working fine.
You just need to add the bookmarklet to your chrome bookmarks tab and when you are at the QS app, open the variables editor and hit the bookmark.

Explanation:
https://withdave.com/2019/11/remove-destroy-all-variables-in-a-qlik-sense-application/
Bookmark to add:
https://withdave.github.io/qsvd/

Best regards,

Cristian

Cristian Dorbesi