Hello,
I have to write the code that i have list in that automatically delete the items based on the date. How can we do this?Anyone please help me…
Hey Prasad..
Do you really need code ? Have you seen Retention Policies ? http://blogs.msdn.com/b/ecm/archive/2011/10/12/policy-and-retention-in-sharepoint-server-2010.aspx
You can throw items in the bin automatically.
If this doesn’t fit your needs, create a Timer job and store the logic of what to delete in a DB, as metadata or wherever. Then all you need to do is check the date, if its passed smoke the item.