ShareMaster is shaped by your feedback. Tell us what to build next →
Features All features overview
Migration Tools Overview Structure and content OneDrive ↔ SharePoint Content only Structure only Move / Copy Upload from this computer Download to this computer Dropbox to SharePoint Resume and incremental runs
Microsoft Teams Overview Copy a team Move channels Merge teams Inactive teams Ownerless teams Guests and external access Export a team Search everyone's chats
Recycling Bin Overview Browse a site's recycle bin Empty recycle bins in bulk Restore and purge history Deleted teams
Archive Overview Configure the tenant On Demand Archive Restore Archived Files Archive Savings Report Blob Viewer
Optimise Storage Tools Overview Delete all items in a list Delete all files and folders in a library Remove empty folders Remove duplicate files Reduce image sizes Delete sites and subsites
SharePoint Tools Overview Tenant Explorer SharePoint Explorer Easy Settings Fix renamed groups List Explorer Search the Preservation Hold Library
Search & Indexing Overview Search query Item search properties Reindex Crawl log
Replace Overview Replace in SharePoint Replace in local files Find password-protected files Remove PDF passwords
Shared Links Overview Report shared links Report unique permissions Remove a person from sharing links Remove shared links Remove unique permissions
Version History Overview Version trimming Version trimming report Reset file version
Reports Overview Inventory report Folder inventory Site and subsite storage Storage growth Security matrix Teams permissions Pre-migration analysis Compare items Dropbox to Microsoft 365 compare Duplicate file report Empty folder report Image size report Recycle bin report Unused licences Copilot readiness Inactive sites, OneDrives and groups Orphaned users Site settings Audit activity Groups Checked-out files report Report history
Developer Tools Overview Query Builder PnPjs Console Property Bags SPFx Customizers Webhooks Customisation audit
Pricing Services Demos Blog Guides Use cases Compare Tools Alerts FAQ Contact
Version trimming

SharePoint version trimming: delete old versions in bulk

Every saved version of every file is charged against your storage. Version Trimmer removes the history you no longer need, on rules you set once, across the libraries you pick, a CSV of URLs or every SharePoint site in the tenant. Removed versions go to the recycle bin unless you say otherwise.

The Version trimming report is free on every plan. Live trimming comes with Recycle Master, from USD 300 a year. Pricing

ShareMaster Version Trimmer options: keep the newest N versions, date, per-day and hours-apart rules, plus file extension and name filters

What version trimming does, in one paragraph

It deletes the older versions of files and leaves the current version alone. SharePoint can do this itself, but only file by file in the Version history panel, gradually through a lower library limit, or permanently through a PowerShell trim job. ShareMaster runs the same clean-up from a window, with finer rules, a free report of the saving, and the recycle bin as a safety net.

SharePoint's own options compared with Version Trimmer

Version history panel Lower the library limit Microsoft trim job ShareMaster Version Trimmer
Removes history that already exists One version of one file at a time Gradually: up to 20 surplus versions each time a file is saved Yes, as a queued background job Yes, in one run
Who runs it, and how In the browser, file by file Library settings, set by the site owner PowerShell, queued by an administrator. Tenant-wide jobs are in preview and need an extra licence The desktop app, signed in with access to the content you trim
Scope One file One library Site, library or OneDrive Sites, libraries or folders you tick, a CSV of URLs, or every SharePoint site in the tenant
Rules You choose each version Version count, or automatic limits Age (30 days minimum), major version count, or automatic Newest N, older than a date, most per day, hours apart, skip recently modified files, extension, file name wildcard
See it before it happens You can see the version No What-if analysis against a version report CSV Excel report per file, same rules, free on every plan
Can you get versions back? Yes, from the site recycle bin No, deleted permanently No, deleted permanently Yes by default, from the recycle bin. Permanent delete is opt-in

The trim job is the right tool when you need Microsoft's automatic algorithm applied to existing files, or a OneDrive account trimmed. Version Trimmer is for when you want a per-file record of what will go, rules finer than a count or an age, or the chance to undo a rule that turned out too aggressive.

The rules

How SharePoint version trimming works in ShareMaster

Keep the newest N

Set how many earlier versions to keep per file. Everything older is removed, and the current version is never touched.

Date and name filters

Skip files modified after a date, only remove versions older than a date, and target file types or names with a wildcard.

Thin out by time

Cap how many versions survive per day, which tames AutoSave bursts, or keep versions at least a set number of hours apart.

Recycle or delete

Removed versions go to the recycle bin by default. Permanent delete gives the storage back the same day, behind its own red warning.

Measure the saving before you remove anything

Start with the Version trimming report. Point it at a site, choose the same rules you would trim with, and it downloads an Excel file listing each file, the versions those rules would remove and the space that would come back. It writes nothing to SharePoint, and it is free on every plan, including the free Community licence, so you can size the saving across the whole estate before deciding anything.

Version trimming report options in ShareMaster, with the same keep rules and file filters as a real trim and a Generate report button
The report takes the same rules as a real trim, so the numbers match what a run would do.

If you would rather start from version counts, exporting SharePoint version counts to Excel shows which files carry the most history.

Running a trim

  1. Choose what to trim. Tick sites, libraries or folders, load a CSV with one URL per row, or confirm every SharePoint site in the tenant. OneDrive accounts are not part of a tenant-wide run. Subsites are only included when you tick Include subsites recursively.
  2. Set the rules. Rules stack: any one of them can save a version, so each extra rule makes the run more cautious. With no rule set, the app warns you that every non-current version will go.
  3. Decide where removed versions go. The recycle bin, by default, or a permanent delete that frees the space today.
  4. Run it. Across several libraries, ShareMaster previews what each one would lose and asks before removing anything. On a single library it trims as it scans, after one confirmation. Stop at any point and the library offers Resume later.
  5. Stop it coming back. After a single-library run you can set that library's version limit, or switch its site to Microsoft's automatic version history limits.

SharePoint storage full? Old versions are usually why

A tenant's SharePoint storage is one shared pool: 1 TB plus 10 GB for each licensed user. Every version of every file is counted in it, not just the file you see. New document libraries keep up to 500 major versions of each file, so a spreadsheet saved a few times a day can hold hundreds of copies of itself. Once the pool is used up, Microsoft charges for extra storage (current extra storage pricing), and that charge recurs every month. How version history fills SharePoint storage works through the arithmetic, and co-authored files are the worst offenders: why co-authoring multiplies versions.

Why lowering the version history limit does not free space

The obvious fix is to lower the limit in the library's versioning settings. That works slowly. SharePoint applies the new limit to a file when it is next saved, removing at most 20 surplus versions per save, and those removals are permanent. Files that nobody edits keep their whole history, and those are often the biggest. Setting the SharePoint version limit walks through the settings themselves, and what intelligent versioning changes covers Microsoft's automatic mode.

Before a migration, and why history is not a backup

Every version you keep is a version a migration has to copy, so trimming first shortens the move and keeps the destination lean: see trimming SharePoint versions before a migration. Trimming is also safer to plan once you stop counting on version history as a backup, which it was never designed to be: why version history is not a backup. For a step-by-step walkthrough of a first trim, read how to trim SharePoint version history.

Recorded in 2023 on an earlier version of ShareMaster. The screens and steps have changed since.

FAQ

Version trimming questions

Do SharePoint file versions count towards storage?
Yes. Every version of every file is charged against your tenant's storage, at the size of that version. A library with versioning left on its defaults can end up several times larger than the files you can see in it.
What is SharePoint version trimming?
Deleting the older versions of files while keeping the current version and as much history as you decide to retain. ShareMaster does it by rule rather than file by file: keep the newest N versions, only remove versions older than a date, keep at most a set number per day, or keep only versions at least so many hours apart.
How do I delete old versions in SharePoint in bulk?
Microsoft's built-in bulk route is a trim job, queued in PowerShell by a SharePoint administrator, and the versions it removes are deleted permanently. In ShareMaster you pick the sites, libraries or folders, load a CSV of their URLs, or choose every SharePoint site in the tenant, set the rule, and run it from a window. Removed versions go to the recycle bin unless you choose permanent delete.
Does lowering the version history limit delete existing versions?
Only slowly. A lower library limit is applied to a file when it is next saved, and then removes at most 20 surplus versions per save, so a file nobody edits keeps all of its history. To get the space back now you have to delete the existing versions, which is what version trimming does.
Can I undo a version trim?
With ShareMaster's default settings, yes: removed versions go to the site recycle bin and can be restored from there. While they sit in that first-stage bin they still count towards storage. If you need the space back at once, choose permanent delete, which has its own red confirmation and cannot be undone. Microsoft's own trim jobs and library limits always delete permanently.
Can I see what would be deleted first?
Yes. The Version trimming report runs the same rules and downloads an Excel file listing what each file would lose and how much space that frees, without removing anything. It is free on every plan. When a trim covers several libraries, ShareMaster also previews what it would remove and asks before it starts. A single library is trimmed as it is scanned once you confirm, so run the report first if you want the list.
Can I protect recent files, or only trim some file types?
Yes. You can skip files modified on or after a date, restrict the run to extensions such as .docx and .pdf, or match file names with a wildcard such as report*. Every rule you switch on has to agree before a version is removed, so adding a rule only ever keeps more.
What happens if I stop a trim halfway?
Versions already removed stay removed, in the recycle bin unless you chose permanent delete. On a single library ShareMaster remembers where it got to and offers Resume the next time you open that library, so the rest can be finished without starting again.
How is this different from intelligent versioning?
Automatic version history limits, sometimes called intelligent versioning, decide which new versions to keep over time. ShareMaster deals with the history already sitting in your libraries, with rules Microsoft's trim jobs do not offer, such as a per-day cap and file name filters. After a run on one library it can set that library's version limit or switch its site to automatic limits, so the history does not build up again.
What can I do on the free trial?
Everything except a full live trim: a live trim on the trial processes the first 5 files, so you can watch it work on real content. The Version trimming report is not limited, so you can measure the whole saving before you buy.
What happens if the current version is a minor version?
You can tick an option to publish it to a major version as part of the run, so files are not left sitting on a draft as their newest version.

Find out how much you would get back

Try ShareMaster free for 14 days, no credit card. The Version trimming report is not limited on the trial, so you can measure the saving across every library before you decide.

Last updated