By Edy, Tech Expert & Blogger

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.

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.

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

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.

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!!

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.

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!
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!
Tech Expert & Blogger
Hi, I’m Edy. With over 30 years of experience in the IT industry, I’ve tackled numerous tech challenges.
As a solopreneur, I write articles to fill the gaps I notice in my work and online.
My mission? To provide clear, step-by-step tech guidance and improve the information you find on the web
Enjoying the content?
Thanks. You save my life.