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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / Powershell to delete P...
Power Pages
Unanswered

Powershell to delete Power apps and flow which certain certain criteria

(0) ShareShare
ReportReport
Posted on by

Hello, 

I need to delete power apps / flow with the filter below

Power apps

1. App ENvironment = Production

2. App Display name Contains "Test"

3. App Created date is on or before " 31/12/2019"

4. App modified date is on or before " 31/12/2019"

5. App owner is empty . 

I have done for 2  Where app name contains Test but could not have other 

 

# Get all the flow which contains "Test" in the display name  
$flowColl=Get-Flow *test*  
  
# Loop through the flow collection  
foreach($flow in $flowColl)  
{  
    # Get the flow ID  
    $flowName=$flow.FlowName  
  
    # Remove the flow  
  Remove-AdminFlow -FlowName $flowName -Confirm:$false   
}

 

Can someone put the other condition

 

 

Categories:
I have the same question (0)

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!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Pages

#1
Valantis Profile Picture

Valantis 58

#2
11manish Profile Picture

11manish 55

#3
Vish WR Profile Picture

Vish WR 29

Last 30 days Overall leaderboard