Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Clean up unused teams in Microsoft Teams

(0) ShareShare
ReportReport
Posted on by

Hello dear community

I am looking for an idea or a flow that should help me to clean up unused teams in the tenant.

 

In the tenant there are some teams that are lying around due to tests or unused. I would like to clean these up automatically.

 

I have the following idea. The flow should check whether a team has been idle for more than 1 year. Then the owner should get an approval as to whether the team is still needed or not. The team should then be archived or kept.

 

Does anyone already have experience in this? Could someone help me? I do not find any information on the subject in other communities.

Thanks - Paul

  • Verified answer
    v-alzhan-msft Profile Picture
    on at
    Re: Clean up unused teams in Microsoft Teams

    Hi @Anonymous ,

     

    Do you want to clean up the groups in the tenant?

    I have made a test on my side and could find a way to achieve your requirement, firstly, Microsoft flow could only get the groups of a user, secondly there is no any function in Microsoft flow could get the owner of the group, so you couldn't send the approval to the owner of the group in Microsoft flow currently.

     

    Best regards,

    Alice       

     

    Community Support Team _ Alice Zhang
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1