SPSCleanVersions is a PowerShell tool that manages version history across your SharePoint Online tenant to optimize storage costs. It sets per-library major/minor version limits, applies site-level version policies (including expiration) via Set-PnPSiteVersionPolicy, and can act on selected sites or the whole tenant — only where a change is actually needed. Compatible with local execution and Azure Automation Runbooks.
- 📦 PowerShell Gallery —
Install-Script SPSCleanVersions - 📦 Latest release
- 📖 Documentation (Wiki)
- 🚀 Getting Started
- ⚙️ Configuration reference
- 📝 Changelog
- 🤝 Contributing