How to Delete an Environment in the Power Platform Admin Center
A Power Platform environment you no longer need, such as a trial that has done its job, can be deleted in the Power Platform admin center, with everything in it. This guide deletes one, then shows how long it took to go and where it went.
Deleting an environment deletes what's inside it. Microsoft's Responding to Data Subject Rights (DSR) requests to delete Power Apps customer data puts it plainly: "Deleting an environment permanently deletes all resources within the environment, including all apps, flows, and connections." Its Dataverse database and backups go too, as the confirmation dialog in Step 3 says.
Microsoft's Delete environment gives the two usual reasons: "to recover storage space and to remove Personally Identifiable Information (PII)." It also names two environments that can't be deleted: the default environment, and the Microsoft 365 Copilot Chat environment.
The example deletes Overtime Timesheet Demo, a trial environment with a Dataverse database (How to Create a Free Trial Environment in Power Platform).
Prerequisites
- An admin role, such as Power Platform Administrator. Microsoft's steps are written for an administrator, in the Power Platform admin center.
Before You Delete
Look at what's in the environment, and keep a copy of anything you'll want again. Microsoft's DSR article says: "you need to review the contents of an environment before deletion." For apps and flows built in a solution, export the solution first (How to Export a Solution in Power Apps (Managed or Unmanaged)). The data in the environment's Dataverse tables goes with the environment.
Step 1: Open Environments
In the Power Platform admin center, select Manage in the navigation pane, then Environments in the Manage pane:

Step 2: Find the Environment and Select Delete
Type the environment's name in the search box at the top right, so the list shows only that environment. Check its Type and Created on date, so you know it's the right one.
Then select ... next to its name. That selects the row and opens a menu, with Delete at the bottom:

Select Delete.
Step 3: Type the Name and Confirm
The dialog names the environment and says what goes with it:
Its resources and backups will be deleted, including:
- Dataverse (…) apps and data
Administrators of the environment will have 0 days to recover it by going to the main environments page.
Confirm stays unavailable until the box holds the environment's name, exactly as the dialog shows it. Type the name, then select Confirm:

Step 4: Wait Until It Leaves the List
There was no message. The dialog closed, and the environment stayed in the list, with State Running:

I refreshed the list every half a minute or so. Five and a half minutes after Confirm, the environment was gone from it.
Where the Environment Goes
The Environments page has a Recently deleted environments button. It opens Environments > Deleted, where the environment was listed with State Deleted:

Its ... menu offered Recover. I didn't use it.
How long a deleted environment can be recovered depends on what you read. The dialog said 0 days. Microsoft's How do I recover a recently deleted environment? says: "The standard soft-delete period is seven days. The exception is a production environment that has Dynamics 365 applications, which remains available for recovery for up to 28 days." It doesn't mention trial environments, and I didn't try to recover mine. Treat the delete as final, and keep what you need before you start.
When Its Address Can Be Used Again
Microsoft's Delete environment article says: "The URL of a deleted environment can't be used again for another environment until at least 24 hours have passed since the environment deletion." That only matters if you create another environment and want the same address for it. I didn't, so I can't say how long it took here.
Common Mistakes
| Mistake | What happens | Do this instead |
|---|---|---|
| Deleting without looking inside first | Its apps, flows, connections and data go with it | Review it, and export the solutions you want to keep |
| Deleting the wrong environment | Everything in it is deleted | Search for it by name and check its Type and Created on first |
| Taking Running for a failed delete | You try again, or worry | Refresh the list for a few minutes |
| Counting on the recovery period | The dialog said 0 days for a trial environment | Treat the delete as final |
Troubleshooting
| Symptom | Likely cause | Fix |
|---|---|---|
| Confirm stays unavailable | The name typed doesn't match the one the dialog shows | Type it exactly as shown |
| The environment still shows after Confirm | Deleting takes a few minutes | Refresh the list; mine left after five and a half minutes |
| There's no way to delete the default environment | Microsoft says it can't be deleted | Delete other environments only |
| A new environment can't use the old one's address | It can't be reused for at least 24 hours | Wait a day, or choose another address |
FAQ
Can I get a deleted environment back?
Microsoft documents Recover, on the Recently deleted environments page, with a standard soft-delete period of seven days. It also says recovery "can take several hours", and that you might need enough storage capacity. For trials, About trial environments adds that a 30-day trial "can only be created and deleted; it can't be reset, backed up, restored, or copied." My trial environment was listed on the page, with Recover in its menu, but the dialog had said 0 days, and I didn't try it.
Can I delete an environment from the command line?
Microsoft's pac admin delete command "Deletes the environment from your tenant", given the environment's URL or ID with --environment. I deleted mine in the admin center and didn't run it.
What about Power Platform CLI profiles that point at it?
They stay on your computer, pointing at an environment that's gone. Delete them with pac auth delete (How to Delete a Power Platform CLI Profile with pac auth delete).
Does a trial environment delete itself anyway?
Yes. Microsoft's About trial environments says of the standard trial: "After 30 days, the environment is disabled and deleted." Deleting it yourself removes its data now.
Conclusion
Manage > Environments, search for the environment, ... > Delete, type its name and Confirm. It showed Running for about five minutes, then left the list for Recently deleted environments, with everything that was in it.
Additional Resources
- Delete environment: the steps, what can't be deleted, and the 24 hours before an address can be reused.
- How do I recover a recently deleted environment?: the soft-delete period and the Recover steps.
- About trial environments: how long a trial lasts and what happens when it ends.
