Somebody built you a plugin two years ago. Somebody redesigned the checkout. Somebody's agency was replaced by a different agency. Each of them needed administrator access, each of them got it, and none of them were removed on the day the work stopped — because on that day there was no incident, no reminder and nobody whose job it was.
Those accounts are still there. They still have full privileges. And the only reason nothing has gone wrong is that nobody has tried.
That is not a security posture. That is luck with a long run of good results.
Why it never gets cleaned up
Not negligence. The task has three properties that make it reliably not happen.
There is no trigger. Offboarding a WordPress account is prompted by nothing. No email arrives, no ticket opens, no screen shows a red number. The prompt for every other maintenance task on a site is the site complaining; this one is silent by design.
The information is not in one place. WordPress's Users screen shows username, email, role and post count. It does not show when somebody last signed in. So the question "who has not used this account in a year" cannot be answered from the screen that lists the accounts — you would have to go looking somewhere that does not exist.
The obvious fix is worse than the problem. Deleting a user makes you choose, immediately and irreversibly, what happens to everything they wrote. Reassign it and the authorship is now a lie. Delete it and you have destroyed work to close an account. Faced with that, most people close the tab, and the account survives another year.
Start with one sort
Open the user list, sort by last login, ascending.
The accounts at the top have never signed in, or have not for years. On any site more than a couple of years old this produces a list within about four seconds, and it is usually more interesting than expected: a contractor, an ex-employee, a plugin's service account with administrator rights, an agency login shared by four people, and a handful of registrations that were never a person at all.

Nothing needs deciding yet. You are building a list.
Then narrow it. Filters that combine turn a vague worry into a specific question:
- Role: administrator — read every row and ask not "do I recognise the name" but "should this account be able to install a plugin today"
- Inactive for 90 days plus a role — the standard access review
- Last login: never plus Registered: before last year — accounts that were created and never once used

One caveat on "Last login: never", and it is a good one. A filter built on the *absence* of a record cannot tell "never signed in" apart from "signed in before anything was recording" — so on a fresh install it would match every account you have, and a bulk action over that selection would lock out the entire site. A tool that is honest about this bounds the filter to accounts registered since it started watching, and tells you that is what it did.
Last login and last activity are not the same thing
Two columns, and the gap between them is the interesting part.
An account that signed in three weeks ago and has been used every day since shows a three-week-old login and a recent activity. That is what a long-lived session looks like: WordPress gives you two days, or fourteen with "remember me", and a browser that never closes keeps renewing.
The reverse gap matters more. An account with a recent login and no activity is somebody who signed in and did nothing — which is either a person checking something, or somebody confirming that a credential still works.
Then disable. Do not delete.
Disabling is the operation the situation actually calls for, and WordPress does not have it.
There is no disabled flag in core. A user exists or they are deleted. Everything in between is bolted onto the authentication stack — which is why the quality of a "disable user" feature depends entirely on how many of WordPress's front doors it knows about.
There are four:
- The login form at
wp-login.php - XML-RPC, still enabled by default, still accepting a username and password on every call
- The REST API, authenticated with application passwords over HTTP basic auth
- An existing session cookie belonging to somebody who signed in an hour ago and never closed the tab
A disable that only covers the first is a speed bump on the most visible path while three others stay open. We wrote about why that is four channels and not one — the short version is that three of them converge on a single filter if you hook late enough, and the fourth does not converge at all.
What you want from the operation is all four closed and every live session destroyed on the spot, rather than left to expire in its own time. Somebody signed in on a machine you cannot reach should lose access on their next request, not in two weeks.
And nothing deleted. Posts, comments, uploads, order history and attribution stay exactly where they are, still attached to the same account. Re-enabling restores access instantly.
That last property is what makes the whole thing tractable. Disabling is a decision you are allowed to get wrong. Deleting is not, and a task where every action is irreversible is a task people avoid.
Two things that should refuse
Any tool that can close accounts in bulk needs two rails that cannot be switched off:
- You cannot disable your own account.
- You cannot disable the last remaining administrator.
Both have to be enforced on the server, not in the interface, or they do not hold for a bulk action or an API call — which are exactly the paths where somebody selects a range without reading it.
In practice this means a bulk run reports refusals individually rather than failing. Select 25 accounts and include yourself: 24 change, one is refused, and the result tells you which and why. A job that silently skipped you would be worse, and one that refused to start at all would be worse still.
What to do on a real site, in order
- Sort by last login. Build the list. Decide nothing.
- Filter to administrators. This is the shortest list with the highest consequences.
- Check live sessions on anything that looks wrong. A session open for months on a laptop somebody no longer has is worth ending on its own.
- Confirm with somebody who knows the people. Names outlive memories, and the account called
dev2belongs to someone. - Disable, don't delete. In batches, with the ability to reverse it tomorrow.
- Set a recurring reminder. Ninety days. The task has no natural trigger, so you have to supply one.
Do not do all of this on the first afternoon. "Reversible" is cold comfort at 9am when a department cannot work.
The part that outlives the cleanup
Cleaning up once feels good and decays immediately. The account you close today is replaced by the contractor you hire in March.
What changes the outcome is having the question answerable at any moment: who has access, when did they last use it, and what have they done with it. If that takes four seconds, somebody will ask it occasionally. If it takes an afternoon of cross-referencing, nobody will ever ask it again, and you are back to luck.
—
*ITX UserOps puts last login, last activity, live sessions and account status on one screen, and disables across all four authentication channels in one action. The user dashboard, the filters and disabling are all in the free plugin — the documentation is here, and account status is documented in full here.*
