## TL;DR

Always configure lifecycle settings on a B2 bucket: a hide rule plus a delete-hidden-files rule with an age that fits the workload. Never enable Object Lock on buckets that rely on lifecycle expiration.

## Steps

1. Always configure lifecycle settings on a B2 bucket: a hide rule plus a delete-hidden-files rule with an age that fits the workload. Never enable Object Lock on buckets that rely on lifecycle expiration. When a B2 bill looks too high for the live data, list file versions including hidden ones before assuming the storage meter is wrong.

## When to use

You are seeing this: When a B2 bill looks too high for the live data, list file versions including hidden ones before assuming the storage meter is wrong. Use this skill when you run into "Backblaze B2 keeps all file versions forever unless lifecycle rules say otherwise".

## When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

## Versions

No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.

## Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.
