cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
New Member

Powershell to delete Power apps and flow which certain certain criteria

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

 

 

0 REPLIES 0

Helpful resources

Announcements
secondImage

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

Users online (21,557)