DEV Community

Vlad Z
Vlad Z

Posted on

Quiet or idle? How to tell before you delete

Quiet is what the metrics show, idle is what you have to confirm

Start with candidates

Compute: CPU under 5 percent and little network traffic for 14 days
Volumes: unattached for 7 days
Load balancers: no meaningful traffic for 14 days
Databases: no application queries for 14 days

Why quiet can fool you

A standby server is quiet by design, a cache can be busy in memory at low CPU, and a quarterly job looks dead for months

It works the other way too, monitoring connections can make an unused database look alive

Three checks before you act

Who connects to it? Look at logs and leave out health checks and monitoring

What points at it? Check DNS, configs, infrastructure code and partner allowlists

When is it next needed? Look for schedules, recovery roles, month-end and yearly work

Then ask the owner what breaks if it is gone, and when they would notice. No reply is not a yes

Remove it in steps

Where it is safe, stop it or block access first, in an agreed window with a way back

Know what stopping does. Some data and IP addresses do not survive it, disks keep billing, and a stopped RDS instance starts again after 7 days

Some things cannot be stopped, so record their configuration first. A released IP address may never come back, and if a vendor has allowlisted it, a new one stays blocked until they update their list

Wait through the longest cycle it could serve, back up the data, then delete

When nobody owns it

Unknown is not the same as idle. Escalate until someone can make the decision

A quiet graph is a reason to investigate, not a reason to delete

Which resource in your account looks idle, but nobody dares to remove?

Top comments (2)

Collapse
 
userxnom profile image
Abdullah Naseer •

The line I will steal is the one about monitoring connections making an unused database look alive. I have seen a database kept for the better part of a year because the connection count never hit zero — and every single connection was the health checker. Filtering out health checks and monitoring before you count anything is the difference between a real signal and a graph that lies to you politely.

The other trap your 14-day window does not catch is the 90-day job. A quarterly report or a year-end reconciliation will always look idle inside a two-week lookback, which is exactly why "wait through the longest cycle" is the most important step in the whole post. One check I would add to your list: what restores from it. A stopped instance nobody queries can still be the restore source in another service's DR runbook, and you only find out during an incident.

What is your default hold for the stop-before-delete step — do you use a fixed 30 days, or stretch it to 90 when the resource could plausibly serve a quarterly cycle?

Collapse
 
vlad_z_16b6320e21f32bee0d profile image
Vlad Z •

No fixed 30, I set the hold by the longest cycle the resource could plausibly serve, so more than a full quarter if it could feed a quarterly job, and for yearly work a verified backup matters more than the hold

What restores from it is a great check to add, DR runbooks are exactly where that dependency hides