Forum Discussion
Changing number of versions to keep
CaptainReboot As per the documentation Set-SPOTenant, you can set the maximum major version limit at tenant level.
But, you might get an error while using EnableAutoExpirationVersionTrim parameter in commands some times as it is still an experimental feature and might not be available for your SharePoint tenant yet.
Microsoft will be releasing some new features related to this parameter and version history in November 2023 and then GA will be around March 2024.
Till then you might need to do version limit changes for individual libraries using PowerShell if above parameter does not work for your tenant.
Yes, newest 100 versions will be kept and older versions will be deleted. You can change the number of versions to keep as per your company/project requirements. 50-100 versions might be enough for some customers and some customers might want to keep more than those.
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.