← TenantTools365Blogone .sppkg · seven tools
Inheritance365 + Unlock365 · Troubleshooting

A file is checked out by someone who left. Will checking it in delete newer work? (No. But discard will.)

Check in keeps the changes they made; discard check-out throws them away. Here is the exact difference, the hidden page that lists every stuck file, the override permission, and the bulk route for a departed user's fifty files.

Published 2026-09-14 · by HS Services

The home page is locked. A folder of contracts shows the little green arrow with a name that no longer works here. Someone asks whether checking it in will "delete all the files created since". It will not. But the other button will delete something, and they are next to each other.

Check in vs. discard: what each keeps

So the answer to "will it delete the documents created since 2021?" is no, either way. The only thing at risk is the edit the departed user was making to that file, and only if you choose discard.

For a page in Site Pages the same applies: check in publishes their draft as the page; discard reverts to the last published version.

Who can do it

The site owner (Full Control) can check in or discard anyone's check-out. Technically it is the Override Check Out permission, which Full Control includes and Edit does not. A library-level Contribute user cannot fix this; that is why it lands with admins.

One file

File → ⋯ → MoreCheck in (or Discard check out). If the option is missing, you are not an owner on that library.

The hidden list of stuck files

There is a second, worse kind of stuck file: uploaded but never checked in, which happens when a library requires check-out and someone drags in a batch and leaves. Those files are invisible to everyone but the uploader.

Library settings → Permissions and Management → Manage files which have no checked in version (/_layouts/15/ManageCheckedOutFiles.aspx?List=<id>). Tick them → Take ownership of selection, then check them in from the library.

All of one person's files, across the library

Connect-PnPOnline -Url https://contoso.sharepoint.com/sites/Legal -Interactive

$lib = 'Contracts'
$stuck = Get-PnPListItem -List $lib -PageSize 2000 -Fields FileRef,CheckoutUser |
  Where-Object { $_['CheckoutUser'] } |
  Select-Object @{n='Path';e={$_['FileRef']}}, @{n='CheckedOutTo';e={$_['CheckoutUser'].Email}}

$stuck | Group-Object CheckedOutTo | Select-Object Count, Name     # who, and how many
$stuck | Where-Object CheckedOutTo -eq 'a.former@contoso.com' | ForEach-Object {
  Set-PnPFileCheckedIn -Url $_.Path -CheckinType MajorCheckIn -Comment 'Checked in by admin - user left'
  "checked in $($_.Path)"
}

Use Set-PnPFileCheckedIn to keep their work. To discard instead, PnP has no dedicated cmdlet; the CSOM call is $file.UndoCheckOut() on Get-PnPFile -AsFileObject. Decide per person, not per file: a departed editor's half-finished drafts are usually worth keeping as a version.

Finding the departed users automatically

The join that makes this a five-minute job instead of a spreadsheet exercise is checked-out-to against account disabled in Entra — so you are not asking HR for the leavers list, or guessing from names. That join, plus showing the list before anything is checked in, is the part we built the tool for. Unlock365 does that join inside the library: scan for checkouts, filter to accounts that are disabled in Entra, and check in (or, guarded, discard) in bulk. It writes only the check-in call and shows the list before it runs.

Questions people also ask

How do I check in a document in SharePoint that is checked out by someone else?

With Full Control (or the Override Check Out permission) on the library, open the file's ⋯ menu → More → Check in, or use Library settings → Manage files which have no checked in version to take ownership and check in. In PowerShell, Set-PnPFileCheckedIn.

What is the difference between check in and discard check out?

Check in publishes the checked-out version as the new current version, keeping the user's changes. Discard check out throws those changes away and reverts to the last checked-in version.

Why is a SharePoint page checked out by a disabled user?

Pages in the Site Pages library use check-out when edited. If the editor's account was disabled before they checked in, the page stays locked. A site owner can check it in or discard the check-out from the page's ⋯ menu or the Site Pages library.

Where is "Manage files which have no checked in version"?

Library settings → Permissions and Management → Manage files which have no checked in version. It lists files that were uploaded but never checked in, which are invisible to other users until an admin takes ownership.