Views:

Applies to Product – Power Apps


What’s happening?
Customers need to bulk delete versions of PowerApps canvas applications and manage the deletion of multiple apps and flows in Power Automate.


Reason:
In Power Apps, there is no function to turn off an app before deletion, and there is no PowerShell command available for this purpose. Additionally, the capacity of the Power Platform may reach its limit, necessitating the deletion of unused apps and flows.


Resolution:

  1. To delete versions of a PowerApps canvas application, use the following PowerShell command: powershell $deleteOlder = "Put App ID Here" $envName = "Environment Name Here" This command will remove any app revision older than the specified date.
  2. For bulk deletion of apps, refer to the following PowerShell commands:
  3. To delete apps: Remove Admin PowerApp
  4. To delete flows: Remove Admin Flow
  5. To disable flows: Disable Admin Flow
  6. To temporarily disable users from using an app, set conditional access on individual apps or manage the app's quarantine state. For more details, refer to the documentation on managing app quarantine state: Manage App Quarantine State.
  7. To restore a deleted app, use the following PowerShell command: powershell Get-AdminRecoverDeletedPowerApp (Microsoft.PowerApps.Administration.PowerShell)
  8. Note that there is no need to turn off apps before deleting them, as this function does not exist in Power Apps.