SharePoint Retention Policy: Setup, Rules, and Best Practices

infographics with a text of SharePoint Retention Policy: Setup, Rules, and Best Practices

A finance manager needs a five-year-old report for an audit, but the document is no longer available in SharePoint. The IT team checks the recycle bin, searches through document libraries, and reviews previous file activity. Still, nobody can confirm whether the file was permanently deleted or should have been retained. This is where unclear retention rules become a serious problem. A SharePoint retention policy helps organizations avoid such situations by defining how long documents must remain available and when Microsoft 365 can delete them. However, choosing the wrong retention period or applying a policy to the wrong sites can create compliance risks and unnecessary storage requirements. 

In our work with SharePoint document management and Microsoft 365 governance at Code Creators, we often focus on how retention settings affect everyday document handling. A policy needs to meet compliance requirements without interfering with how employees create, update, and manage their files. 

In this article, you will learn how to set up a SharePoint retention policy in Microsoft 365, choose the right retention settings, understand what happens to protected files, and avoid configuration mistakes. 

How to Set Up a SharePoint Retention Policy in Office 365

You can create and manage retention policies through the Microsoft Purview portal. The process involves selecting the SharePoint sites you want to cover, setting a retention period, and deciding what Microsoft 365 should do when that period ends. 

Before starting, make sure your account has the required retention management permissions. 

Step 1: Access Retention Policies in Microsoft Purview

Open Microsoft Purview and sign in with your organizational account. 

Navigate to: 

Solutions → Data Lifecycle Management → Policies → Retention policies 

Select New retention policy to open the configuration wizard. 

If you cannot access the retention policy settings, ask your Microsoft 365 administrator to check your permissions. Your account needs an appropriate role, such as one included in the Retention Management role group. 

Step 2: Give Your Policy a Clear Name

Enter a name that identifies the documents or business function the policy will cover. 

A naming format such as Finance Records – 7 Year Retention makes the policy’s purpose clear during administrative reviews. It identifies the document category and retention period without requiring administrators to open the policy settings. 

Clear naming also makes it easier to distinguish policies when multiple departments have different retention requirements. 

Step 3: Select the SharePoint Sites You Want to Cover

Next, select how Microsoft 365 should determine the policy’s scope. 

For a straightforward setup, choose Static. This option lets you select specific SharePoint sites or apply the policy across all supported sites. 

Under the location settings, enable SharePoint sites and configure the sites you want to include or exclude. 

When working with SharePoint environments, we often find that departments manage different types of documents but do not always have separate retention rules. Finance, HR, and marketing sites may all fall under the same policy, even when their document requirements differ. 

This is why we recommend reviewing each site’s purpose before assigning retention periods. It helps administrators apply the right rules without keeping unrelated documents longer than necessary. 

Important: Review site selections before continuing. Applying a policy too broadly can retain documents your organization intended to delete sooner. 

Step 4: Set the Retention Period and Action

This step determines how Microsoft 365 handles documents covered by your policy. 

You have three main choices:

Retention setting What happens to SharePoint documents
Retain for a specific period Microsoft 365 preserves content for the required period without automatically deleting it afterward
Delete after a specific period Microsoft 365 deletes eligible content after the configured period
Retain and then delete Microsoft 365 preserves content for the required period and starts deletion afterward

You must also choose when the retention period begins.

For SharePoint files, a standard retention policy can calculate the period from the file’s creation date or its last modification date. 

With creation-based retention, Microsoft 365 calculates the retention period from the file’s original creation date. Modification-based retention uses the last modified date instead, meaning subsequent updates can extend how long the document remains under retention. 

This distinction matters for contracts, reports, and other files that employees update throughout their lifecycle. Choosing the wrong starting point can keep documents longer than intended. 

Step 5: Review and Submit Your Policy

Before submitting, check these details:

  • The correct SharePoint sites appear in the policy scope.
  • The retention period matches your organization’s requirements.
  • The selected retention action reflects what should happen after expiration.

Click Submit to create your policy.

Microsoft 365 may take up to seven days to apply the new settings. During this period, review the policy status in Microsoft Purview rather than assuming every document has received the retention settings immediately. 

What Happens to SharePoint Files Under a Retention Policy?

A retention policy does not necessarily stop employees from editing or deleting documents. Instead, Microsoft 365 preserves protected content when required. 

Understanding this behavior is important because a file can disappear from a user’s document library while Microsoft 365 still retains a copy for compliance purposes. 

When Someone Edits or Deletes a Protected File

One issue we pay close attention to during SharePoint retention reviews is the difference between deleting a file and permanently removing its content. Users may no longer see a document in their library, even though Microsoft 365 still retains a copy under the applicable policy. 

When retention requires it, SharePoint uses the Preservation Hold Library to keep protected content after changes or deletions. Understanding this behavior helps administrators investigate missing files without assuming the organization has lost the retained information. 

However, the Preservation Hold Library uses SharePoint site storage. Organizations should account for this when planning storage capacity. 

When the Retention Period Ends

What happens next depends on the action you selected during configuration. 

With a retain-only policy, Microsoft 365 does not automatically delete the original document simply because its retention period has ended. 

With a retain-and-delete policy, Microsoft 365 starts the applicable deletion process once the document reaches the end of its retention period. 

For SharePoint, deletion can involve background processing and recycle bin stages. Other retention policies, labels, or legal holds may also delay permanent deletion. 

Therefore, a policy expiration date does not always mean the file disappears permanently on that exact day. 

What If Multiple Retention Policies Apply to the Same File?

One SharePoint document can fall under several retention settings. This commonly happens when an organization applies a general policy across SharePoint and another policy to a particular department. 

Microsoft 365 follows retention principles to resolve overlapping retention settings. 

Retention takes priority over deletion. If one applicable setting requires Microsoft 365 to preserve content while another requires deletion, the system generally continues retaining the content. 

The longest applicable retention period wins. A three-year policy cannot shorten an applicable seven-year retention requirement when both periods start on the same date. 

Our approach is to check existing policies and retention labels before changing retention settings. This helps identify overlapping rules that could keep documents protected longer than administrators expect. 

However, the actual expiration dates matter. A five-year policy based on the last modification date can expire later than a seven-year policy based on creation. 

Retention labels can also take precedence when Microsoft 365 resolves conflicting deletion actions. 

When Should You Use a Retention Policy Instead of a Retention Label?

A Microsoft 365 retention policy works well when an entire SharePoint site needs consistent document retention rules. But what happens when one library contains invoices, contracts, and project notes with different retention requirements? 

In that situation, retention labels provide more specific control.

Your requirement Better option
Keep documents across a finance site for seven years Retention policy
Apply different retention periods to contracts and invoices Retention labels
Apply the same rules across multiple SharePoint sites Retention policy
Manage individual documents as formal records Retention labels with records management capabilities

Procurement sites commonly store different document categories, including supplier contracts, invoices, and routine purchasing records. These documents do not always share the same retention requirements.

Applying one site-wide retention period can create unnecessary restrictions when certain records need longer protection than others.

Retention labels allow administrators to assign different retention rules to individual document categories. This provides more control over document lifecycles without requiring separate SharePoint sites for every retention requirement.

Best Practices for SharePoint Retention Policy Management

Creating an Office 365 retention policy is relatively straightforward. Keeping it accurate as your organization grows requires more planning. 

Rather than applying one retention period everywhere, focus on the following areas. 

Match Retention Periods to Actual Document Requirements

Start with your organization’s record retention schedule. Identify the document categories, the departments responsible for them, and the legal or business requirements that determine how long they must remain available. 

For instance, financial statements and temporary project documents may require different retention periods. Applying the same policy to both can create unnecessary storage requirements or lead to early deletion. 

Work with your legal or compliance team before finalizing retention periods. 

Test Your Policy on a Limited Number of Sites

Begin with a small group of SharePoint sites instead of immediately covering the entire environment. 

Check whether the selected sites match your policy scope and whether the configured rules behave as expected after deployment. 

For a retain-and-delete policy, also review existing holds and labels before relying on its deletion action. 

This approach makes configuration problems easier to identify without introducing unnecessary changes across your organization. 

Review Retention Policies When Business Requirements Change

Departments reorganize, new SharePoint sites appear, and compliance requirements change over time. 

A Microsoft retention policy that covered the correct locations last year may no longer cover every site that needs protection. 

Schedule periodic reviews to confirm the policy owner, included locations, retention period, and deletion settings. 

Keep a record of approved changes so administrators can explain why a particular policy applies to a document. 

Common Mistakes That Affect SharePoint Retention

Some retention problems become apparent only after employees delete documents or auditors request historical records. 

Three mistakes deserve particular attention. 

Treating retention as a backup solution. Retention helps preserve content according to compliance rules, but it does not replace a dedicated backup and recovery approach. Organizations still need a recovery plan for broader data-loss situations. 

Overlooking the retention start date. A policy based on the last modification date can retain frequently edited documents longer than expected. Always confirm whether creation or modification better matches your record retention requirements. 

Changing policies without checking existing holds. Removing or shortening one policy does not guarantee immediate deletion. Another retention requirement or legal hold may still protect the same content. 

Documenting these decisions helps administrators avoid unexpected outcomes and makes future policy reviews easier. 

Manage SharePoint Retention Policies with Code Creators

Retention policies can become difficult to manage when different SharePoint sites have different document requirements or existing policies overlap. Choosing the right retention period is important, but so is making sure the rules apply to the correct content without affecting everyday document management. 

At Code Creators, we help businesses review their SharePoint environments, configure retention settings, and manage Microsoft 365 governance requirements. Our focus is on understanding how your teams handle documents and setting up retention rules that meet your business and compliance needs. 

Not sure whether your current retention policies cover the right documents? Get in touch with Code Creators to review your SharePoint retention requirements and plan the next steps. 

Conclusion

Setting up a SharePoint retention policy starts with identifying which sites need protection and how long their documents must remain available. Microsoft Purview lets you configure these settings, but the retention period, starting date, and deletion action determine how the policy behaves. 

For consistent site-wide requirements, use retention policies. When individual documents require different rules, consider retention labels. Also, remember that Microsoft 365 prioritizes applicable retention requirements, so overlapping policies can affect when documents become eligible for deletion. 

Before expanding a policy across your environment, verify its scope, review existing holds, and confirm that its retention settings match your organization’s approved requirements. These checks help you maintain reliable document retention without keeping unnecessary content or deleting important records too early. 

Want to simplify SharePoint document governance and keep your retention settings under control? Explore our SharePoint consulting services to see how we can support your Microsoft 365 environment. 

Frequently Asked Questions

Open Microsoft Purview and go to Data Lifecycle Management > Policies > Retention policies. Review the policies that include SharePoint locations and check whether your site’s URL appears in their included or excluded locations. Also, check policies covering all SharePoint sites, as they may apply without listing your site individually. 

A seven-year retention policy requires Microsoft 365 to preserve covered content for seven years, starting from the configured retention date. In SharePoint, this can be the document’s creation or last modification date. After seven years, Microsoft 365 may delete the content if the policy includes deletion and no other retention requirements prevent it. 

Yes. When a SharePoint retention policy requires Microsoft 365 to preserve a document, deleting it from a library does not necessarily remove its retained content. SharePoint keeps the required copy in the Preservation Hold Library. The content remains protected for the applicable retention period, even when users can no longer access the original file. 

A retention policy should define which SharePoint sites or Microsoft 365 locations it covers, how long to retain content, when the retention period starts, and whether to delete content afterward. Organizations should also document the policy’s purpose, responsible administrators, and compliance requirements to make future reviews and updates easier. 

Microsoft retention policies are Microsoft Purview settings that control how long organizations retain or delete content across supported Microsoft 365 services, including SharePoint, OneDrive, and Exchange. Administrators configure these rules according to business and compliance requirements. Unlike retention labels, which provide item-level control, retention policies generally manage content across selected locations. 

Author

  • Sherry Rajani - Founder Code Creators
    Founder of Code Creators

    Sherry Rajani, is a tie-loathing adventurer and troublemaker who believes in turning ideas into reality. Even though his experience is primarily in Microsoft Cloud and On-Premise Solutions, Sherry has also lead teams building Custom ERPs, Mobile Applications, Data Management and other solutions.
    After working in the Toronto Technology Industry for a while, Sherry started his own Technology Consulting Firm, Code Creators Inc., specializing in the Office 365 Stack ranging from SharePoint Online, the Power Platform, PowerBI and Microsoft Teams.

    View all posts