SharePoint Document Expiration Policy


i have created one document Library.just i want to set expiration date for each Documents.i have tried with Retention Policy.Retention Policy applies to whole library but i want to apply for individual items.if the date is expired for specific documents,then it will  be removed from the library and moved into recycle bin or other library.

Can anyone plz give immediate response for this.

May 21st, 2015 12:29am


According to your description, my understanding is that you want to move some specific documents  items to recycle bin if the date exceed the expiration date.

I suggest you can add a Date field to restore the expiration date, then get the date using Client Object Model and compare the date with current date, if the current date exceed the expiration date, you can use ListItem.Recycle method to move the item to recycle bin.

Here are some detailed articles for your reference:

ListItem.Recycle method

Programming Efficiently with the SharePoint Client-Side Object Model


Best Regards

Free Windows Admin Tool Kit Click here and download it now
May 22nd, 2015 2:40am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics