<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Clean up obsolete variables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Clean-up-obsolete-variables/m-p/771522#M1297407</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi DataNibbler,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this isn't directly possible within the script because it didn't exists a variable-array through which you could loop. You will need always an additionally step and read all avilable variables with macros (in another variable or a textfile - whereby then you could delete directly) or you read the meta-data from the app and used these information then within the script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.qlikblog.at/852/qliktip-9-deleting-variables-user-interface-load-script-macros-translated/" title="http://www.qlikblog.at/852/qliktip-9-deleting-variables-user-interface-load-script-macros-translated/"&gt;QlikTip #9: Deleting variables via user-interface, within the load-script or by using macros (translated)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Jan 2015 10:32:49 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2015-01-27T10:32:49Z</dc:date>
    <item>
      <title>Clean up obsolete variables</title>
      <link>https://community.qlik.com/t5/QlikView/Clean-up-obsolete-variables/m-p/771521#M1297404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have just had a problem in one of my scripts once again, the reason for which was an obsolete variable, still retained in the app, that I had mistakenly used to build something new. Of course it didn't work and took me a while until I figured this out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&amp;gt; Is there a way I can build a loop, like I have for cleaning tables in RAM, to clean up all existing variables at the end of a script?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I have a naming_convention, so it would be a possibility to work with a *. Would that work?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2026 18:19:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Clean-up-obsolete-variables/m-p/771521#M1297404</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2026-01-26T18:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: Clean up obsolete variables</title>
      <link>https://community.qlik.com/t5/QlikView/Clean-up-obsolete-variables/m-p/771522#M1297407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi DataNibbler,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this isn't directly possible within the script because it didn't exists a variable-array through which you could loop. You will need always an additionally step and read all avilable variables with macros (in another variable or a textfile - whereby then you could delete directly) or you read the meta-data from the app and used these information then within the script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.qlikblog.at/852/qliktip-9-deleting-variables-user-interface-load-script-macros-translated/" title="http://www.qlikblog.at/852/qliktip-9-deleting-variables-user-interface-load-script-macros-translated/"&gt;QlikTip #9: Deleting variables via user-interface, within the load-script or by using macros (translated)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jan 2015 10:32:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Clean-up-obsolete-variables/m-p/771522#M1297407</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2015-01-27T10:32:49Z</dc:date>
    </item>
    <item>
      <title>Re: Clean up obsolete variables</title>
      <link>https://community.qlik.com/t5/QlikView/Clean-up-obsolete-variables/m-p/771523#M1297409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Marcus!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Okay - the whole thing is two-fold anyway:&lt;/P&gt;&lt;P&gt;1) First, it is a one-off job to delete all obsolete variables that are obviously not in use anymore - that can be done via&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; the variable_manager, I have tested that they don't return after a restart.&lt;/P&gt;&lt;P&gt;2) The second step - what I'm currently doing for this one app - is just going through the script m.o.l. line by line,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; noting the names of the variables created and then looking for when they have completely done their job and then&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; just insert a command to set them to a NULL value.&lt;/P&gt;&lt;P&gt;I will do that - it's a lot of work, but getting everything clean and orderly is worthwhile.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jan 2015 10:40:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Clean-up-obsolete-variables/m-p/771523#M1297409</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2015-01-27T10:40:33Z</dc:date>
    </item>
  </channel>
</rss>

