
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Accepted Solutions

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
So, my conclusion is that there is no way to do it in script.
Marc.
I select correct just to close thread.


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
In the application directly.
Settings / Variable Overview. You select the first variable and press SHIFT to the last variable. Then select Remove


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sorry Yoann, I meant in script. Just wondering if possible...
Marc.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
So, my conclusion is that there is no way to do it in script.
Marc.
I select correct just to close thread.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
