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?
↧