Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
nguyenqx612
Contributor II
Contributor II

Delete App in QMC Using Script/API Engine

Hello, 

How do I delete apps in QMC using Qlik Script or API Engine?

For example: 

  • There are a lot of random apps created by users 
  • There is an external list (excel) of approved apps by the admin that are only allowed in Qlik Sense

So what I'd like to do is to use some sort of Qlik script to automatically compare the list (excel) with apps in QMC. If apps that don't exist in the list will be deleted. 

Do we have any examples somewhere? I did a bit of research on that and API engine is the recommended tool, but I'm not sure how to do that. 

Thank you, 

 

Labels (7)
1 Reply
Levi_Turner
Employee
Employee

Hey @nguyenqx612 ,

The Qlik Sense Repository API is honestly more suited for this activity. As for the method for doing this, any scripting or programming language can achieve the goal. Here's a code base where I am comparing apps in the QMC vs. what is present on disk: https://github.com/levi-turner/QlikSenseScripts/blob/master/qlik_sense-compare_qmc_vs_disk.ps1

For the actual deletion, it's as simple as DELETE /qrs/app/{id}/delete

Cheers.