
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.
Here are steps to create retain policy:
- From the Microsoft Purview compliance portal, select Data lifecycle management > Microsoft 365 > Retention Policies.
- 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.