Is there way or policy for SharePoint online to retain the data basis on their files and data versions like there are files which were created long back and has older versions but now I don't need it so by creating the retention or archive policy it will

Vinod Survase 4,776 Reputation points
2024-01-27T09:48:39.7133333+00:00

Is there way or policy for SharePoint online to retain the data basis on their files and data versions like there are files which were created long back and has older versions but now I don't need it so by creating the retention or archive policy it will deleted for particular period lets say last 3 or 5 or more years?

Microsoft 365 and Office | Install, redeem, activate | For business | Windows
Microsoft 365 and Office | SharePoint | For business | Windows
Microsoft 365 and Office | OneDrive | For business | Windows
Microsoft Security | Microsoft Entra | Microsoft Entra ID
Microsoft Security | Microsoft Purview
{count} votes

2 answers

Sort by: Most helpful
  1. Xyza Xue_MSFT 30,176 Reputation points Microsoft External Staff
    2024-01-29T06:39:57.82+00:00

    Hi @Vinod Survase ,

    Yes, SharePoint Online provides a way to retain data based on their files and data versions. You can create a retention policy to retain or delete files based on your organization’s compliance needs.

    When creating a retention policy, it’s important to make sure you understand how it will affect existing documents. A retention policy specifies that a document will be deleted a certain amount of time after it has been created or modified. When you apply a retention policy to a SharePoint site, it will apply to all documents — even those that were created before the policy was applied. So if you set a retention policy of three years from the creation date, and apply it to a site that contains documents that are over three years old, these documents will be deleted.

    You also have the option to choose whether to apply the retention policy based on the creation date or the last modified date.

    User's image

    Here are steps to create retain policy:

    1. From the Microsoft Purview compliance portal, select Data lifecycle management > Microsoft 365 > Retention Policies.
    2. Select New retention policy to start the Create retention policy configuration, and name your new retention policy.

    For more detail information,please refer to this article: Create and configure retention policies


    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.


  2. Xyza Xue_MSFT 30,176 Reputation points Microsoft External Staff
    2024-02-02T07:32:28.3666667+00:00

    Hi @Vinod Survase ,

    I apologize for misunderstanding what you meant. Unfortunately, there is no way in sharepoint to set a deletion or retention policy for a specific period of time for a file's version record. We can only Delete All Versions at once.

    Reference: https://support.microsoft.com/en-us/office/delete-a-previous-version-of-an-item-or-file-in-sharepoint-45edfb0d-8b43-4f07-ac6a-ab4ac169d5aa


    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.


Your answer

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