What gets created must also be removed
Most environments have a way in but no way out. Why it is a process problem, and where to start.
One day I went through the ticket history for the environment I am responsible for and counted two things: how many new servers and virtual machines had been requested, and how many had been decommissioned. The first was a steady flow that grew every year. The second was close to zero. Same picture for accounts: plenty created, almost none removed.
So there was a way in, but no way out. Everything anyone had ever needed was still there, whether or not anyone still needed it.
Why it isn't a technical problem
The first temptation is to look for a tool: a script that finds unused machines, a report, an automatic clean-up. Tools help, but they don't fix the root cause. The root cause is that the process has no end.
When a request comes in, there is a requester, a purpose and some urgency. Everyone knows why the machine is needed. A year later none of that is in the ticket any more. The requester has changed jobs, the project is done, and the machine sits there without anyone knowing whether it is used. Operations can't decommission it, because operations doesn't know what it does. So it stays.
That costs in three ways. Capacity runs out, and the next purchase is made to make room for machines nobody uses. Security gets worse, because every forgotten machine and every account nobody logs in with still has to be patched and monitored, and can be misused. And when something does break, there is nobody to ask.
Responsibility sits with the owners, not with operations
My first instinct was that this was for operations to solve. That was wrong. Operations can see that a machine hasn't had a logon in six months, but it can't know whether it is needed for a year-end close, an audit or a production line that only runs a few weeks a year. Only the owner knows that.
So I shifted the focus. The owners exist: the business and the local contacts at each site. They just don't do anything proactively, because nobody has asked them to. The role of operations becomes producing the data and reminding them, regularly, and raising it in the meetings the owners already attend. The decision to remove a machine is the owner's.
Start with what is new
You can't clean up years of history in one go, and that isn't where to start anyway. You start by no longer adding to the problem:
- Nothing is created without an owner and an end date. A named person, not a team. A date when it goes, or gets reviewed. The date can move, but someone has to decide.
- Rightsize before you buy. Before new capacity is ordered, existing machines are shrunk to what they actually use, and the unused ones are shut down.
- A quarterly review. A list of machines without logons, machines without an owner, passed end dates and accounts never used goes to each owner. The list never deletes anything automatically. Logon data doesn't cover everything, and service accounts don't log on like people.
- Decommissioning has its own template. Shut down first, wait, take a final backup, and clean up the dependencies: DNS, firewall rules, directory objects, monitoring, backup jobs and licences. Whatever is forgotten there stays behind as clutter.
The full template is under ITIL in practice: lifecycle for servers and accounts.
Measure two things
You don't need a big report to see whether it works. Two numbers are enough: created versus decommissioned per quarter, and the share of machines and accounts with a named owner. If both move the right way, the process has an end. If they don't, you know where to push.
It sounds dull, and it is. Lifecycle management isn't a project with a launch date. It is a habit. But it is the habit that decides whether an environment gets easier or heavier to run every year.
In short
- Count created against decommissioned. If the second is near zero, the process has no end.
- It is a process problem, not a tooling problem.
- The owner decides. Operations produces the data and reminds.
- Start with an owner and an end date on everything new.