<?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 Deleting an App with the Qlik Engine API does only work sometimes in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Deleting-an-App-with-the-Qlik-Engine-API-does-only-work/m-p/2493594#M21538</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;I try to delete a Qlik Sense App with the Qlik Engine API. I tested it via the DEV-HUB Engine API Explorer and an own C# application. The outcome is the same.&lt;/P&gt;
&lt;P&gt;I do it with the DeleteApp Method. Example:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "DeleteApp",
  "handle": -1,
  "params": [
    "842e869e-3844-4899-a3b5-b32d7040aa3e"
  ],
  "outKey": -1
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;At first it fails with a 403: Forbidden. Okay after some googling, I found out I need to be owner of this app. For whatever reason like if being Rootadmin is not enough?&lt;BR /&gt;&lt;BR /&gt;So I try a new app where i set me as Owner - And it works!&lt;BR /&gt;However, it does not work every time. The next app i tried, I get a Forbidden error again even though I am the owner!?&lt;BR /&gt;Okay then if I try it again with the same app with a DeleteApp request, I receive 9002: Delete in Progress Error.&lt;BR /&gt;Why? I thought I can't delete it because it is forbidden!?&lt;BR /&gt;However the app can't be deleted anymore. Not even from the QMC directly. It just gives me a "Delete Failed".&lt;BR /&gt;The Engine API seems to destroy something.&lt;BR /&gt;The solution to this problem however is to restart the Qlik Sense Repository Service...&lt;BR /&gt;I really don't understand why the Engine API is so inconsitent.&lt;/P&gt;
&lt;P&gt;I thought maybe it needs some time to sync with the repository database or something like that. So I set me as owner to 10 test apps and waited one day. I tried to delete them on the next day with an Engine API DeleteApp Reuqest but still it failed with a 403: Forbidden....&lt;/P&gt;
&lt;P&gt;So I duplicated one of the 10 apps. And tried to delete it again with an Engine API DeleteApp Reuqest and now it worked! - Why?&lt;BR /&gt;&lt;BR /&gt;I don't get it.&lt;BR /&gt;&lt;BR /&gt;Can someone please explain?&lt;BR /&gt;&lt;BR /&gt;Thanks and regards&lt;BR /&gt;Julian&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 20 Nov 2024 08:21:49 GMT</pubDate>
    <dc:creator>SaturnV</dc:creator>
    <dc:date>2024-11-20T08:21:49Z</dc:date>
    <item>
      <title>Deleting an App with the Qlik Engine API does only work sometimes</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Deleting-an-App-with-the-Qlik-Engine-API-does-only-work/m-p/2493594#M21538</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;I try to delete a Qlik Sense App with the Qlik Engine API. I tested it via the DEV-HUB Engine API Explorer and an own C# application. The outcome is the same.&lt;/P&gt;
&lt;P&gt;I do it with the DeleteApp Method. Example:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "DeleteApp",
  "handle": -1,
  "params": [
    "842e869e-3844-4899-a3b5-b32d7040aa3e"
  ],
  "outKey": -1
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;At first it fails with a 403: Forbidden. Okay after some googling, I found out I need to be owner of this app. For whatever reason like if being Rootadmin is not enough?&lt;BR /&gt;&lt;BR /&gt;So I try a new app where i set me as Owner - And it works!&lt;BR /&gt;However, it does not work every time. The next app i tried, I get a Forbidden error again even though I am the owner!?&lt;BR /&gt;Okay then if I try it again with the same app with a DeleteApp request, I receive 9002: Delete in Progress Error.&lt;BR /&gt;Why? I thought I can't delete it because it is forbidden!?&lt;BR /&gt;However the app can't be deleted anymore. Not even from the QMC directly. It just gives me a "Delete Failed".&lt;BR /&gt;The Engine API seems to destroy something.&lt;BR /&gt;The solution to this problem however is to restart the Qlik Sense Repository Service...&lt;BR /&gt;I really don't understand why the Engine API is so inconsitent.&lt;/P&gt;
&lt;P&gt;I thought maybe it needs some time to sync with the repository database or something like that. So I set me as owner to 10 test apps and waited one day. I tried to delete them on the next day with an Engine API DeleteApp Reuqest but still it failed with a 403: Forbidden....&lt;/P&gt;
&lt;P&gt;So I duplicated one of the 10 apps. And tried to delete it again with an Engine API DeleteApp Reuqest and now it worked! - Why?&lt;BR /&gt;&lt;BR /&gt;I don't get it.&lt;BR /&gt;&lt;BR /&gt;Can someone please explain?&lt;BR /&gt;&lt;BR /&gt;Thanks and regards&lt;BR /&gt;Julian&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2024 08:21:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Deleting-an-App-with-the-Qlik-Engine-API-does-only-work/m-p/2493594#M21538</guid>
      <dc:creator>SaturnV</dc:creator>
      <dc:date>2024-11-20T08:21:49Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting an App with the Qlik Engine API does only work sometimes</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Deleting-an-App-with-the-Qlik-Engine-API-does-only-work/m-p/2493601#M21539</link>
      <description>&lt;P&gt;I can't explain what you're seeing here, but in general the recommendation is to use the QRS API for app management stuff. This is the endpoint to use:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/sense-developer/May2024/APIs/RepositoryServiceAPI/index.html?page=1422" target="_blank" rel="noopener"&gt;https://help.qlik.com/en-US/sense-developer/May2024/APIs/RepositoryServiceAPI/index.html?page=1422&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Using the library QlikSenseRestClient (&lt;A href="https://www.nuget.org/packages/QlikSenseRestClient/" target="_blank" rel="noopener"&gt;https://www.nuget.org/packages/QlikSenseRestClient/&lt;/A&gt;) you can do such a delete like this:&lt;/P&gt;
&lt;PRE&gt;var url = "&amp;lt;url&amp;gt;";&lt;BR /&gt;var appId = "&amp;lt;appId&amp;gt;";&lt;BR /&gt;var restClient = new RestClient(url);&lt;BR /&gt;restClient.AsNtlmUserViaProxy();&lt;BR /&gt;restClient.Delete($"/qrs/app/{appId}");&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2024 09:33:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Deleting-an-App-with-the-Qlik-Engine-API-does-only-work/m-p/2493601#M21539</guid>
      <dc:creator>Øystein_Kolsrud</dc:creator>
      <dc:date>2024-11-20T09:33:38Z</dc:date>
    </item>
  </channel>
</rss>

