Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

In Shapoint 2007, how programmitally delete the old version of documents

$
0
0

I have over a thousand intranet sites and I want to delete the older versions of the documents in the library - like keep only the latest 3 doc version. The database is getting really large close to 200 GB and want to minimize the database. Is there any code to perform this task programmatically - like to loop through all the sites and subsites then look for the document library folder and delete the older versions?


Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>