kumiko clean-test-dbs
kumiko clean-test-dbs [--dry-run]Integration tests spin up a throw-away kumiko_test_<uuid> database per test
worker. Clean shutdown drops them — but SIGKILLed runs (Ctrl-C, OOM,
container crash) leak them.
This command lists every kumiko_test_* database on the connected
Postgres and drops them (or, with --dry-run, just lists what it
would drop).
Example
Section titled “Example”kumiko clean-test-dbs --dry-run# would drop:# kumiko_test_abc123# kumiko_test_def456
kumiko clean-test-dbs# ✓ dropped 2 stale test DBsWhen to use
Section titled “When to use”- Disk fills up (each test DB is ~10-50MB; they add up over a long iteration session)
- Periodically as a hygiene step
It’s safe to run while tests are active — the cleanup skips DBs that have an open connection.