web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Restore accidentally d...
Power Automate
Suggested Answer

Restore accidentally deleted Power Automate flow

(0) ShareShare
ReportReport
Posted on by
I accidentally deleted a cloud flow and need to restore it urgently.

Flow name: Bot_Consulta_ContactCenter
Flow ID: cea6f9c5-7403-4259-ab2d-20ac3fcaba78
Environment: Default-a5decd10-9165-4636-a64c-7958004215fa
Owner: larquinigo@cientifica.edu.pe
Deletion date: February 18, 2026 ~19:00 hrs (Peru, UTC-5)

Is there any way to recover it?
I have the same question (0)
  • Suggested answer
    sannavajjala87 Profile Picture
    170 Super User 2026 Season 1 on at
    Hi,
     
    I have been through this situation in my tenant and this powershell script way helped me restore the flow. Please find it as below: 
     
    # ==============================
    # Restore a deleted Cloud Flow
    # ==============================
    # Flow Name: Bot_Consulta_ContactCenter
    # Flow ID:   cea6f9c5-7403-4259-ab2d-20ac3fcaba78
    # Env ID:    Default-a5decd10-9165-4636-a64c-7958004215fa
    $envId  = "Default-a5decd10-9165-4636-a64c-7958004215fa"
    $flowId = "cea6f9c5-7403-4259-ab2d-20ac3fcaba78"
    # 1) Install modules (run once)
    Install-Module Microsoft.PowerApps.Administration.PowerShell -Scope CurrentUser -Force
    Install-Module Microsoft.PowerApps.PowerShell -Scope CurrentUser -Force
    # 2) Sign in
    Add-PowerAppsAccount
    # 3) (Optional) Verify the flow exists in the environment (sometimes helps confirm you’re pointing to the right env)
    # Note: If it's deleted, it may not show here depending on retention/view behavior.
    Get-AdminFlow -EnvironmentName $envId | Where-Object { $_.FlowName -eq $flowId -or $_.DisplayName -like "*Bot_Consulta_ContactCenter*" } |
    Select-Object DisplayName, FlowName, CreatedTime, LastModifiedTime
    # 4) Restore the deleted flow
    Restore-AdminFlow -EnvironmentName $envId -FlowName $flowId
    # 5) Confirm it’s back
    Get-AdminFlow -EnvironmentName $envId -FlowName $flowId | Select-Object DisplayName, FlowName, Enabled, CreatedTime, LastModifiedTime
     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 239 Super User 2026 Season 1

#2
David_MA Profile Picture

David_MA 177 Super User 2026 Season 1

#3
Kalathiya Profile Picture

Kalathiya 97 Super User 2026 Season 1

Last 30 days Overall leaderboard