Share via

create retention policy for teams

Jeremy Addison 0 Reputation points
2026-02-23T20:49:05.29+00:00

create retention policy for teams to remove all history upon closing teams

Microsoft Teams | Microsoft Teams for business | Settings | Privacy
{count} votes

2 answers

Sort by: Most helpful
  1. Ryan-N 10,875 Reputation points Microsoft External Staff Moderator
    2026-02-23T21:34:57.59+00:00

    Hi @Jeremy Addison,

    Welcome to the Microsoft Q&A forum.

    I would like to provide you with the following information:

    At the moment, Retention Policies only support deleting Microsoft Teams chat history after a specified period of time, based on the configured settings. Currently, there is no option to automatically delete Teams chat history immediately when Teams is closed or when a user signs out.

    If you would like to refer to a method for automatically deleting Teams chat history after a specific period of time, you can follow the steps below:

    Step 1: Go to purview.microsoft.com

    Step 2: Search for Data lifecycle management in the search bar

    Step 3: Select Retention policies > Create new retention policy

    Step 4: Skip Policy scope

    Step 5: Select Static

    Step 6: Select Teams chats

    Step 7: Under Retention settings > Retain items for a specific period, choose Custom and

    set the retention period to 1 day

    User's image

    Step 8: Click Next > Finish

    I hope the information above is helpful. Please follow the steps and let me know whether the result works as expected. If not, we can continue working together to further troubleshoot this issue.

    Thank you for your patience and understanding. If you have any questions or need additional support, please feel free to share them in the comments so I can continue assisting you.

    I look forward to continuing our discussion.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". 

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread. 

    0 comments No comments

  2. Q&A Assist
    2026-02-23T20:49:11.28+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    To create a retention policy for Microsoft Teams that removes all history upon closing Teams, you would typically configure a retention policy that deletes messages after a specified period. However, Microsoft Teams does not support an immediate deletion of history upon closing the application. Instead, you can set up a retention policy that deletes messages after a certain time frame, such as after one day or another specified duration.

    Here’s a general approach to creating a retention policy for Teams:

    1. Access the Microsoft Purview compliance portal: Go to the retention policies section.
    2. Create a new retention policy: Follow the prompts to set up a new policy.
    3. Specify the locations: Choose Microsoft Teams as the location for the policy.
    4. Set retention settings: Decide whether to retain content, delete it, or both, and specify the duration for which the content should be retained before deletion.
    5. Review and save the policy: Ensure that all settings are correct and save the policy.

    For more detailed instructions, you can refer to the Microsoft documentation on creating and managing retention policies for Teams.


    References:

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.