We are using Publish-PerTenantExtensionApps.ps1 for our CD pipeline to automatically publish in customer environments. However, after running this script the old app still stays published but not installed. After some time this leads to alot of published apps that are not installed.
How can we add a step to unpublish the upgraded app after running Publish-PerTenantExtensionApps.ps1?