<?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: Deleting Files from Script : a Powershell solution in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Deleting-Files-from-Script-a-Powershell-solution/m-p/2005936#M83243</link>
    <description>&lt;P&gt;Forgot to explain how i configured the task :&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="simonaubert_1-1668695467766.png" style="width: 734px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/93995i6990DDB788DA46C1/image-dimensions/734x266?v=v2" width="734" height="266" role="button" title="simonaubert_1-1668695467766.png" alt="simonaubert_1-1668695467766.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 17 Nov 2022 14:31:40 GMT</pubDate>
    <dc:creator>simonaubert</dc:creator>
    <dc:date>2022-11-17T14:31:40Z</dc:date>
    <item>
      <title>Deleting Files from Script : a Powershell solution</title>
      <link>https://community.qlik.com/t5/App-Development/Deleting-Files-from-Script-a-Powershell-solution/m-p/2004200#M83131</link>
      <description>&lt;P&gt;Hello all,&lt;BR /&gt;&lt;BR /&gt;Here is a solution of mine to delete files from script with the help of powershell&lt;/P&gt;
&lt;LI-CODE lang="c"&gt;let v_path_file_to_delete_via_powershell='D:\Sense\AppsDocument\08_TMP_SUPPRESSION_FICHIER\New Text Document*.txt';
let v_cmd_suppresion='#&amp;gt;'&amp;amp;
chr(10)&amp;amp;chr(13)&amp;amp;'Remove-Item -Path '&amp;amp;chr(39)&amp;amp;'$(v_path_file_to_delete_via_powershell)'&amp;amp;chr(39)&amp;amp;' -Recurse'&amp;amp;chr(10)&amp;amp;chr(13)&amp;amp;'#';

let v_titre_suppresion='&amp;lt;#'; //pour escaper sur Powershell
NoConcatenate
SCF_DROP_FILE:
LOAD text('$(v_cmd_suppresion)') as [$(v_titre_suppresion)]
AutoGenerate(1);

store SCF_DROP_FILE into [lib://CONFIG_06_POWERSHELL/SCF_DROP_FILE.PS1](txt);

Let vServer = 'localhost';
let v_task_reellement_lancee='☠TEST_SUPPRESSION_FICHIER☠';
 Let vTaskName = '$(v_task_reellement_lancee)';
          Let vURL = '"https://$(vServer):4242/qrs/task/start?name=$(vTaskName)"';
          trace --&amp;gt; Url Testée Sub Declencheur $(vURL);

          LIB CONNECT TO 'REST_TASK_LAUNCHER';
          RestTable:
          SQL SELECT
          FROM JSON (wrap on) "root"
          WITH CONNECTION ( URL $(vURL) );
          Drop Table RestTable;
exit script;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can fin more info about&amp;nbsp;REST_TASK_LAUNCHER here :&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Integration-Extension-APIs/Reloading-task-from-script-authentication-with-saml-and-multi/td-p/1743623/page/2" target="_blank"&gt;https://community.qlik.com/t5/Integration-Extension-APIs/Reloading-task-from-script-authentication-with-saml-and-multi/td-p/1743623/page/2&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;You can also vote for this idea to have that feature natively&lt;BR /&gt;&lt;A href="https://community.qlik.com/t5/Suggest-an-Idea/Delete-Files-from-a-lib/idi-p/1689857" target="_blank"&gt;https://community.qlik.com/t5/Suggest-an-Idea/Delete-Files-from-a-lib/idi-p/1689857&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;&lt;BR /&gt;Simon&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2022 15:45:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Deleting-Files-from-Script-a-Powershell-solution/m-p/2004200#M83131</guid>
      <dc:creator>simonaubert</dc:creator>
      <dc:date>2022-11-14T15:45:10Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting Files from Script : a Powershell solution</title>
      <link>https://community.qlik.com/t5/App-Development/Deleting-Files-from-Script-a-Powershell-solution/m-p/2005936#M83243</link>
      <description>&lt;P&gt;Forgot to explain how i configured the task :&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="simonaubert_1-1668695467766.png" style="width: 734px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/93995i6990DDB788DA46C1/image-dimensions/734x266?v=v2" width="734" height="266" role="button" title="simonaubert_1-1668695467766.png" alt="simonaubert_1-1668695467766.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Nov 2022 14:31:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Deleting-Files-from-Script-a-Powershell-solution/m-p/2005936#M83243</guid>
      <dc:creator>simonaubert</dc:creator>
      <dc:date>2022-11-17T14:31:40Z</dc:date>
    </item>
  </channel>
</rss>

