-
Notifications
You must be signed in to change notification settings - Fork 0
Home
GitHub Action edited this page Feb 16, 2026
·
8 revisions
SPSCleanVersions is a PowerShell script tool to clean Version History in your SharePoint Tenant. Optimize your storage costs by managing major and minor versions across libraries and lists.
-
Simulation Mode: Support for
-WhatIfto preview changes and estimate potential storage gains safely. - Flexible Retention: Define custom thresholds for major and minor versions.
- Granular Targeting: Process a single Site Collection or multiple sites via a list, avoiding tenant-wide timeouts.
-
Force Delete Old Versions: Use
-ForceDeleteOldVersionsto trigger a batch delete job viaNew-PnPSiteFileVersionBatchDeleteJob, trimming file versions exceeding the configured major/minor count limits.
For details on usage, configuration, and parameters, explore the links below:
Navigation
Project