---
title: "How to Recover a Deleted App in Microsoft Power Apps Using MS Powershell"
url: "https://edywerder.ch/power-app-recover-deleted-app/"
type: "post"
published: "2022-03-02T13:59:51+01:00"
modified: "2025-04-23T18:36:34+02:00"
author: "Edy Werder"
---

![Recover a deleted app in Microsoft Power Apps](https://edywerder.ch/wp-content/uploads/2022/03/Power-app-recover-deleted-app-1067x600.png)

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](https://edywerder.ch/wp-content/uploads/2022/03/Powershell-ISE-850x600.jpg)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

       [!\[Beelink Mini PC, SEi12 Mini Computers Intel i5-12450H(Up to 4.4GHz) 8C/12T, Micro PC 16GB DDR4 RAM 1TB M.2 NVMe SSD, Desktop Computer 4K@60Hz/HDMI&DP/WiFi6/BT5.2/Gigabit Ethernet/HTPC/W-11 Pro\](https://m.media-amazon.com/images/I/41V-YkAdsPL.jpg)](https://www.amazon.com/dp/B0BQ6DSBFM?tag=edyus-20&linkCode=ogi)    [Beelink Mini PC, SEi12 Mini Computers Intel i5-12450H(Up to 4.4GHz) 8C/12T, Micro PC 16GB DDR4 RAM 1TB M.2 NVMe SSD, Desktop Computer 4K@60Hz/HDMI&DP/WiFi6/BT5.2/Gigabit Ethernet/HTPC/W-11 Pro](https://www.amazon.com/dp/B0BQ6DSBFM?tag=edyus-20&linkCode=ogi)    $379.00  **     [Buy on Amazon](https://www.amazon.com/dp/B0BQ6DSBFM?tag=edyus-20&linkCode=ogi)   We earn a commission if you make a purchase, at no additional cost to you.   11/26/2026 03:57 am GMT **

---

## 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](https://edywerder.ch/wp-content/uploads/2022/03/environment-name.jpg)Power App URL – environment name

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

 ![Power App appname GUID](https://edywerder.ch/wp-content/uploads/2022/03/Get-AdminDeletedPowerAppsList-1200x297.jpg)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](https://edywerder.ch/wp-content/uploads/2022/03/Get-AdminRecoverDeletedPowerApp-1200x173.jpg)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](https://edywerder.ch/wp-content/uploads/2022/03/Recovered-App-1200x272.jpg)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](https://edywerder.ch/wp-content/uploads/2022/03/rename-app.jpg)Rename the Power App

---

---

### Does Power Apps have a recycle bin?

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

### What is the retention time to undelete a Power app?

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!

## 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](https://edywerder.ch/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!

## Related Articles

- [How to use Synology Drive](https://edywerder.ch/synology-drive/)
- [How to install NextCloud on Proxmox with Ubuntu](https://edywerder.ch/how-to-install-nextcloud-on-proxmox-with-ubuntu/)
- [Renew Exchange certificate](https://edywerder.ch/renew-exchange-certificate/)

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

As an eBay Partner, I earn from qualifying purchases.

Als eBay-Partner verdiene ich an qualifizierten Verkäufen.
