Recover a deleted app in Microsoft Power Apps

Suppose you have ever accidentally deleted an app in Microsoft Power Apps. You know how frustrating it can be. Thankfully, there is a way to recover your app using MS Powershell. This blog post will walk you through the steps to recover your deleted app.

Let’s get started!

It has happened to me as well, and my first thought is, wait. There must be a recycle bin or a way to recover the Power app. A quick Google search shows no way to undelete a Power app using the Power App Dashboard. Powershell is required.

I found some guides on using PowerShell to recover a deleted Power app. Unfortunately, most instructions were missing some steps, so I wrote a blog post including all the necessary steps.

I use Powershell ISE instead of Powershell. The split screen is super convenient to work with. You can copy commands and run them line by line, and it is very easy to correct commands. I highly recommend it.


Power app recover deleted app - Powershell ISE
Powershell ISE

Follow four easy steps to undelete your Power App.

Step One: Install PowerShell Cmdlets for Power Apps


A prerequisite is to install the PowerShell Cmdlets for Power Apps first

Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force -scope CurrentUser
Install-Module -Name Microsoft.PowerApps.Administration.PowerShell -Scope CurrentUser –Force
Install-Module -Name Microsoft.PowerApps.PowerShell -Scope CurrentUser -AllowClobber –Force
Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy RemoteSigned –Force 

Execute each line separately and reply with ‘Yes to All.’ This can take a few moments. The last command sets the ExecutionPolicy


My pick

Beelink SEI12 Mini PC, 16GB RAM, 1TB NVMe SSD


Step Two: Login to Power Apps environment


After installing the cmdlets, we may log into our Power Apps environment in PowerShell.

Here’s the command to authenticate to a Power Apps. It is the usual Microsoft login prompt for Office 365. It will launch a new window where you have to enter the credentials. Remember, you need to have admin rights for the Power Apps environment.

Add-PowerAppsAccount

Step Three: Getting a list of deleted Power Apps


To get a list of recoverable Power Apps, use the following command.

Get-AdminDeletedPowerAppsList -EnvironmentName Default-b693953a-95e6-42ab-83a0-58745720bf90

How do I know my environment name? Log in to your Power App Admin Center Dashboard with the browser. In the URL address, you can see your environment name.

Power App recover deleted app - environment name
Power App URL – environment name

It displays the GUID AppNames of all the app(s) that can be recovered.

Power App appname GUID
Power Apps Appname GUID


Step Four: Recover the deleted Power App

Get-AdminRecoverDeletedPowerApp -EnvironmentName Default-b693953a-95e6-42ab-83a0-95705720bf90 -AppName  0b3ac42a-e5f4-4945-aba2-798e0d1ee9ff

The above command will undelete the Power app.

Power App recover delted app - Powershell command
Power App recover deleted app

If you get the result code 200, then your app was recovered successfully.

Go back to your Azure Power App dashboard and you will see the app again. Hooray!!

Power App Dashboard
Power App Dashboard

Your app’s name was changed to ‘Restored_with current date’. To restore the app to its original name, click the three dots next to the app name, settings, and pencil icon.

Rename a Power App
Rename the Power App


No, there is no recycle bin available. If you delete the app, the only way to recover it is by using MS Powershell.

According to Microsoft, it takes 28 days to recover. After that, you cannot recover it with MS Powershell.


Conclusion

This blog post shows you how to recover a deleted app in Microsoft Power Apps using MS Powershell. I have included all the necessary steps so you can quickly recover your deleted app.

Did it work? Please let me know in the comment section below. I would love to get your feedback.

Thanks for reading!

.stk-c516ab0 {padding-top:0px !important;padding-right:0px !important;padding-bottom:0px !important;padding-left:0px !important;margin-top:51px !important;margin-bottom:49px !important;}
.stk-3e5f134 {background-color:var(–global-palette7, #EDF2F7) !important;padding-top:10px !important;padding-right:10px !important;padding-bottom:10px !important;padding-left:10px !important;}.stk-3e5f134:before{background-color:var(–global-palette7, #EDF2F7) !important;}

Before you go …

If you’re interested in recovering deleted Power Apps, you may also find it useful to streamline data management by learning how to import a CSV file into Excel. This guide covers a straightforward method for importing large data sets, which can be a valuable skill when working with app data or reports exported from Power Apps. Whether you’re consolidating information or setting up data for analysis, importing CSV files efficiently is a must-have skill. Check it out to optimize your workflow further!

.stk-30d717f {padding-top:0px !important;padding-right:0px !important;padding-bottom:0px !important;padding-left:0px !important;margin-top:51px !important;margin-bottom:49px !important;}
.stk-d6da39b {background-color:var(–global-palette7, #EDF2F7) !important;padding-top:10px !important;padding-right:10px !important;padding-bottom:10px !important;padding-left:10px !important;}.stk-d6da39b:before{background-color:var(–global-palette7, #EDF2F7) !important;}.stk-d6da39b-container{padding-top:27px !important;padding-right:27px !important;padding-bottom:27px !important;padding-left:27px !important;}

Full Disclosure

Any purchases made from clicks on links to products on this page may result in an affiliate commission for me. 

Please keep in mind that the quantity or price of items can change at any time.

As an Amazon  Associate, I earn from qualifying purchases.

Als Amazon-Partner verdiene ich an qualifizierten Verkäufen

Tech Expert & Blogger


One Comment

Leave a Reply

Your email address will not be published. Required fields are marked *

For security, use of Google's reCAPTCHA service is required which is subject to the Google Privacy Policy and Terms of Use.