Forum Discussion
TimLB
Nov 03, 2020Iron Contributor
Version history and Retention Policies - Why do I have so many versions?
We are using (I believe) the global default of 500 versions for document libraries in SharePoint Online and now we are discovering that the version history is accumulating more than 500 major version...
N51768
Feb 07, 2024Copper Contributor
Have you managed to resolve this?
- MontegoservicesFeb 09, 2024Copper Contributor
N51768 issue is that your retention policy is based on time and versioning is based on how many times you save a document. In office web the documents are saved every 25 seconds so if you have retention based on time it can be a larger file count than versioning limit.
- N51768Feb 09, 2024Copper ContributorMontegoservices
We are continuously adding space to SP Online site, because my SharePoint online is constantly running out of space, we have huge libraries with 1000 GB and 10000 Versions.
My Question:
when retention policy in place, can we delete older versions and limit the versions to 50 using PowerShell script?
If not, what would be the best way to handle my issue?
we have retention policy in place for 7 Years.
looking for best solution for high SharePoint storage Issue.- TimLBFeb 12, 2024Iron Contributor
For us - the retention policy affects the version history as well. So, limiting the number of versions on the library and attempting to delete specific older versions of a document are not possible with the global retention policies in place. So, the only way to reduce the size would be to delete the document - all the versions would go along with it.
I hit post early and had to edit it.