ahaydon / Qlik-Cli-Windows

Qlik-Cli for Windows
https://adamhaydon.uk/Qlik-Cli-Windows/
GNU General Public License v2.0
110 stars 51 forks source link

Delete unpublished apps of inactive users using qlik-cli #194

Closed ShalakaKshirsagar closed 1 year ago

ShalakaKshirsagar commented 2 years ago

Request you to ping the code to Delete unpublished apps of inactive users. I dont want to delete published apps of inactive users.

using qlik-cli scripting.

ShalakaKshirsagar commented 1 year ago

hello @ahaydon , Request you to respond.

ahaydon commented 1 year ago

Using the Get-QlikApp command you can filter the results by owner to check if the user is inactive and also check the published state of the app, the output can then be piped into the Remove-QlikApp command. The following example shows how to do this:

Get-QlikApp -Filter "owner.inactive eq true and published eq false" | Remove-QlikApp