Retention Policy for document library in SharePoint 2010

SharePoint is emerging as an enterprise level content management system. Usually enterprises load all the records to the ECM system. Most of the records are not relevant after a few years. These documents need to be removed from the ECM System. Over the years SharePoint is emerging as an Enterprise ECM and it allows its users to easily setting up document retention policies. Retention policy specifies how a document is disposed.

One of the major improvements in SharePoint 2010 compared to prior version is the improvements in information management policies. SharePoint 2010 can apply the expiration policy in multiple stages, where each stage can do some specific actions such as deleting draft versions, deleting previous versions , deleting the record etc. In SharePoint 2010 you can apply the retention policy to a content type, to a list or document library, to a folder.

For the purpose of this Article, I am going to demonstrate how you can create your own retention policies. I have a document Library named “MyDocuments”, where I want the following policies to be applied.

1. If a document is not modified for 2 year delete its previous versions

2. Any document created here to be deleted after 3 years.

Here are the steps.

Navigate to the “MyDocuments” document library where you are going do the retention policy

clip_image002

From the top ribbon, navigate to the Library tab, and then click on Library settings. (both are marked with red in the below screenshot)

clip_image004

You will be navigated to the document library settings page. Click on the Information management policy settings from this page.

clip_image006

By default a library will inherit its policies from the content type, so that the policies set for the content type will be applied. You can change this by overriding “Source of retention for this library” property. For the purpose of demonstration I am going to set up retention policy for “MyDocuments” library explicitly. Click on the “change source” link.

clip_image008

You will reach the configuration page for the retention schedule. Select the libraries and folders radio button. You will receive a warning alert stating the content type retention policy will be ignored. Click ok here.

clip_image010

You can see the configuration options available for document library/list here. Click on “add a retention stage" link

clip_image012

The stage properties dialog will appear. Here I am going to add a stage that checks the document modified date and if it is more than 2 years, delete the previous versions.

clip_image013

In the property window, see the first section – Event. This decides the trigger condition for the stage to do some process. By default, you will have the stage based on the date property. As I specified previously, I need to select the time period as “date modified” and in the textbox enter the value 2. In the action section, from the dropdown select “delete all previous versions”. I don’t want to repeat this stage as I will have another stage that deletes the item. So leave the checkbox unchecked. Click ok to close the property window.

clip_image014

The stage will be configured accordingly. Again click on the “Add a retention stage” link. This time I will add rule, if created date is greater than 3 years, delete the item. The configuration screen is as follows.

clip_image015

Since you are deleting the item, the recurrence option will be disabled. Click ok to create the stage. Your configured stages will be as follows.

clip_image016

For the records option, leave the default selection as it is. Click on the apply button, then click ok to return to the library settings page.

clip_image017

That’s it. Now the documents placed in “MyDocuments” library will be expired according to the above policy. The steps will be similar, if you want to apply the retention/expiration policy for content type, you need to navigate to the information policy management page of content type and then perform the above steps.

Published Thursday, November 11, 2010 2:45 PM by sreejukg

Comments

# re: Retention Policy for document library in SharePoint 2010

Thursday, November 11, 2010 7:34 AM by Jaison

Nice one, thanks for posting this

# re: Retention Policy for document library in SharePoint 2010

Friday, March 4, 2011 1:53 AM by Ravi

useful!!!

thanx

# re: Retention Policy for document library in SharePoint 2010

Monday, June 6, 2011 5:20 PM by Tom Molskow

Great post!  Thanks for sharing this information!

Tom Molskow

# re: Retention Policy for document library in SharePoint 2010

Tuesday, August 16, 2011 1:37 AM by santhosh

Can we fetch retention policy from external site(Collection), if possible, how?

Please email me at marksanthosh@gmail.com

# re: Retention Policy for document library in SharePoint 2010

Thursday, October 27, 2011 4:41 AM by Suze Fletcher

This works fine on an empty library.  When I add new documents, they all show up with an expiration date.  However, if the library already contains files when I apply a retention policy, the column stays empty.  Where am I going wrong?

# re: Retention Policy for document library in SharePoint 2010

Monday, December 19, 2011 8:08 AM by manish

Can any one tell me how to set a daily reminder for an approval mail. if its still in pending mode with approver.

# re: Retention Policy for document library in SharePoint 2010

Sunday, May 13, 2012 5:16 PM by Anup

Thank you so much for this post..Helped me alot..

# re: Retention Policy for document library in SharePoint 2010

Monday, May 14, 2012 6:20 PM by bvfzcNGSnlhtEDQE

C62Z9e Enjoyed every bit of your blog article. Awesome.