# Finding Kafka Waste That's Safe to Cut with Conduktor Agents

A shared Kafka cluster collects things nobody needs: topics nobody writes to, consumer groups nobody runs, and partitions sized for traffic that never came. Cutting them is cheap. Cutting the wrong one breaks a job nobody remembered, and most of the work in a cleanup is telling the two apart.

Take a cost review. Priya, on the platform team, asks every team to trim what it doesn't need before the next one. Bob looks after the payments topics. Priya can see everything, including the topics nobody owns, and this review needs both of them.

## Bob Checks What Payments Could Cut

Bob asks Claude Code: "Priya wants every team to trim what it doesn't need on Kafka before the next cost review. What on our payments topics could we cut, and what isn't worth touching?" His assistant reaches Console through the [Conduktor MCP server](https://www.conduktor.io/mcp) with Bob's own token, and spends two minutes reading the payments topics, their consumers and the cluster around them.

Its first line isn't what a cost review usually hears: "Payments has very little worth cutting." The three topics hold about 60 MB together, "roughly 15% of the cluster's storage", and the bigger savings sit in topics payments doesn't own.

   ~/payments

**Claude Code** v2.1.325

Opus 5.5

~/payments

Called conduktor 12 times (ctrl+o to expand)

 Found the three payments topics; checking who reads and writes them before deciding what's safe to cut.

Called conduktor 12 times (ctrl+o to expand)

 Payments has very little worth cutting. Its three topics hold about **60 MB** together, roughly 15% of the cluster's storage. The two pageviews topics hold 342 MB, so the real savings on this cluster are there, not in payments.

Topic Size Partitions Consumers payments-incoming 36 MB 6 payments-reporting (no members running) payments-outgoing 23 MB 6 payments-reporting (no members running) payments-failed 1.7 MB 3 none

**What could be cut, all small:**

- **Partitions** are the one place payments uses most of the cluster: 15 of its 17 partitions, for only about 126K messages in total. One partition per topic would handle that. It only saves money if Priya's cost model charges per partition. Kafka can't reduce partitions on an existing topic, so you'd have to recreate the topics and move producers and consumers over. That's a risky change to a payments flow for little gain.

- **payments-failed** is the only payments topic Conduktor flags as underused (3 partitions for 1.7 MB). No consumer group reads it, but it holds declined payments (insufficient_funds and similar). Payments should be asked who's supposed to act on declines. I wouldn't delete it to save 1.7 MB.

**Leave alone:**

- **Replication factor 3** on all three. Lowering it on payment data trades durability for almost no saving.

- **7-day retention.** No data has expired yet on any partition, so shortening it frees nothing now and removes the replay window if reporting needs to reprocess.

 1m 56s

*Bob's assistant sizes the payments topics, then says what could go and what should stay.*

Payments does stand out on [partitions](https://www.conduktor.io/glossary/kafka-partitioning-strategies-and-best-practices), with "15 of its 17 partitions, for only about 126K messages in total." It also says why fewer partitions are hard to get: "Kafka can't reduce partitions on an existing topic, so you'd have to recreate the topics and move producers and consumers over. That's a risky change to a payments flow for little gain."

Bob has three ways to go from here:

- **Recreate the topics with fewer partitions.** It saves partitions, but it means a migration on a live payments flow.
- **Leave the partitions and keep them in mind.** Nothing breaks, and the next payments topic gets sized for its traffic.
- **Look at what the assistant flagged instead.** Nobody reads `payments-failed`, which "holds declined payments". The advice: "Payments should be asked who's supposed to act on declines. I wouldn't delete it to save 1.7 MB."

He leaves the partitions and takes `payments-failed` to his team. The assistant also told him what not to touch: replication factor 3, because "lowering it on payment data trades durability for almost no saving", and the 7-day retention, because no data has expired yet, so "shortening it frees nothing now and removes the replay window".

## Priya Starts From the Reclaim List

Bob's topics have an owner. The waste on a shared cluster usually doesn't, which is why Priya runs the built-in Low-use insight agent on a schedule. Its latest report is a reclaim list: empty topics, tiny ones, and consumer groups with nobody running them, each with its partitions, its size and its owner if Console knows one.

Most of the candidates on her cluster have no owning application, so the list can't tell her who to ask. She opens [Ask Conduktor](https://www.conduktor.io/console/agents?src=blog-finding-kafka-waste-safe-to-cut) on the topic at the top of her mind, `legacy-invoices-archive`, and asks: "Is it safe to delete?"

Agentic

Home

Identities

Tasks

Models

Agents

Scheduled

Event-driven

Output

Reports

Recommendations

Approvals

Direct updates

Settings
main

Output / Low-use topics (Insights) / c65a2f50-298f-47ab-99ab-a9dcc070aae9

Ask   A

Output

Everything your agents hand back, reports to read, recommendations to act on, approvals to decide, and a record of direct updates.

Reports Recommendations Approvals Direct updates

Search by title, task or agent Agent

Output Agent

Reclaim list: local-kafka-cluster (Insights low-use topics and idle consumer groups) Low-use insight Low-use topics (Insights)

Reclaim list: local-kafka-cluster (Insights low-use topics and idle consumer groups) Report Low-use insight

Output Trace

Read-only task: nothing was changed

*Empty topics (local-kafka-cluster)***12**  *Stale topics (local-kafka-cluster)***0**  *Empty / dead consumer groups***7 Empty / 0 Dead**

Empty topics (never written, or no messages and idle 7+ days)

Topic Cluster Partitions Replication factor Owner

orders-v1-deprecated local-kafka-cluster 6 3 unowned

test-alice-scratch local-kafka-cluster 6 3 unowned

tmp-migration-2023 local-kafka-cluster 6 3 unowned

Tiny topics (internal topics left out)

Topic Cluster Partitions Storage Owner

legacy-invoices-archive local-kafka-cluster 3 24.9 KB unowned

feature-flags-sync local-kafka-cluster 12 417 B unowned

Empty or dead consumer groups

Group Cluster State Topics read

old-reporting-job local-kafka-cluster Empty pageviews

invoice-exporter-v1 local-kafka-cluster Empty legacy-invoices-archive

Home

Ask Conduktor

Agents

Console

Topics

Schema registry

Consumer groups

Kafka Connect

Kafka Gateway

Brokers

Service accounts

SQL engines

Analytics

Insights

Chargeback

Lineage

Settings
main

 Local Kafka local-kafka-cluster  Topics / legacy-invoices-archive

Ask   A

legacy-invoices-archive

*Records***200*****Topic size***24 KiB*****Replication factor***3**

Add label

Consume Produce Configuration Consumer Groups Schema ACL Partitions*3*

**Produce rate**Consume rate  1H**1D**7D 30D

**Records**Disk usage  1H**1D**7D 30D

 New chat The low-use report lists legacy-invoices-archive as unowned, with invoice-exporter-v1 as an abandoned group on it. Is it safe to delete? Safe to delete legacy-invoices-archive?

How can I help?

Ask about your topics, consumer groups, schemas or how Conduktor works.

The low-use report lists legacy-invoices-archive as unowned, with invoice-exporter-v1 as an abandoned group on it. Is it safe to delete?

Thinking…

Reading your cluster… Looked at your cluster · 7 calls · 11s

 Read topic legacy-invoices-archive on local-kafka-cluster*31 ms*

 Listed consumer groups by topic on local-kafka-cluster*35 ms*

 Read stream lineage legacy-invoices-archive on local-kafka-cluster*34 ms*

 Searched audit log on local-kafka-cluster*13 ms*

 Searched topics on local-kafka-cluster*25 ms*

 Read consumer group invoice-exporter-v1 on local-kafka-cluster*110 ms*

 Listed acl bindings on local-kafka-cluster*14 ms*

**Not yet safe to delete.** The topic looks idle, but the group on it didn't finish reading it, and the data may not exist anywhere else.

- **Unread data:** invoice-exporter-v1 has 150 unread records. It committed offset 50 on partition 1, which holds all 200 records (partitions 0 and 2 are empty). So three quarters of the topic was never exported.
- **Group state:** the group is Empty with no members. That fits "abandoned", but it could also mean the export stopped partway through.
- **Access:** I found no topic-specific ACLs. The only grants are User:legacy-etl with All on every topic and group (*). That principal may be the old producer or exporter, so ask whoever owns it.

Open invoice-exporter-v1 Who is legacy-etl?

OK, leave that one. What about the three empty ones on the list: tmp-migration-2023, test-alice-scratch and orders-v1-deprecated?

Thinking…

Reading your cluster… Looked at your cluster · 17 calls · 20s

 Searched topics on local-kafka-cluster*22 ms*

 Listed consumer groups by topic on local-kafka-cluster*48 ms*

 Listed consumer groups by topic on local-kafka-cluster*45 ms*

 Listed consumer groups by topic on local-kafka-cluster*45 ms*

 Read stream lineage orders-v1-deprecated on local-kafka-cluster*43 ms*

 Read stream lineage tmp-migration-2023 on local-kafka-cluster*17 ms*

 Read stream lineage test-alice-scratch on local-kafka-cluster*12 ms*

 Searched audit log on local-kafka-cluster*13 ms*

 Searched audit log on local-kafka-cluster*13 ms*

 Searched audit log on local-kafka-cluster*13 ms*

 Listed acl bindings on local-kafka-cluster*39 ms*

 Listed acl bindings on local-kafka-cluster*32 ms*

 Listed acl bindings on local-kafka-cluster*73 ms*

 Listed connectors detailed on local-kafka-cluster*140 ms*

 Searched audit log on local-kafka-cluster*14 ms*

 Searched audit log on local-kafka-cluster*12 ms*

 Searched audit log on local-kafka-cluster*13 ms*

**Yes, all three look safe to delete.** Each is empty, has no consumers and isn't used by any connector. Delete them from the Topics page, one at a time.

- **No data:** each topic has 0 records and 0 bytes, with 6 partitions and replication factor 3.
- **No readers:** list-consumer-groups-by-topic returns no groups for any of them. Nothing else is stopping you the way invoice-exporter-v1 was on the invoices topic.
- **No connectors:** none of the 12 connectors on this cluster reference these topics.

Some caveats:

- **Names:** orders-v1-deprecated could be a deliberate placeholder for a migration, so ask the orders team before removing it. test-alice-scratch is probably Alice's. A quick message to her costs little, and it's what I'd do before deleting.

Open orders-v1-deprecated

 Ask anything…

/for skills

AI can make mistakes, check what matters.

*The reclaim list, then Ask on two cleanup questions: one answer is not yet, the other is yes with caveats.*

Ask's answer is "Not yet safe to delete." The topic looks idle, but `invoice-exporter-v1`, the abandoned group on it, stopped partway: "three quarters of the topic was never exported." The only grant that reaches the topic is `legacy-etl`'s All on every topic. Before deleting, Ask says to find out who owns those two, and to copy the records somewhere first if anyone might need them.

Priya has three options for the invoices topic:

- **Delete it now.** It's 24.9 KB, so the saving is tiny, and 150 invoices that may never have been exported go with it.
- **Copy the records first, then delete.** Nothing is lost, but whoever needs the invoices has to know where they went.
- **Leave it until someone claims `legacy-etl`.** Nothing is lost, and it stays on the list.

She leaves it and asks about the three empty topics on the same list. This time the answer is "Yes, all three look safe to delete": no records, no consumer groups, no connectors, and no schema. Ask still adds a human caveat: `orders-v1-deprecated` "could be a deliberate placeholder for a migration", and `test-alice-scratch` "is probably Alice's. A quick message to her costs little".

## Delete One Topic, With a Post-Mortem Ready

Priya deletes `tmp-migration-2023`, the one empty topic with no owner hint, and sends the other two names to Alice and the orders team. Console asks her to type DELETE, because a deleted topic can't be brought back.

Console

Home

Topics

Schema registry

Consumer groups

Kafka Connect

Kafka Gateway

Brokers

Service accounts

Flink PREVIEW

SQL engines

Analytics

Insights

Chargeback

Lineage

Agentic

Home

Identities

Tasks

Models

Agents

Scheduled

Event-driven

Output

Reports

Recommendations

Approvals

Direct updates

Settings
main

**Local Kafka***local-kafka-cluster* Topics / tmp-migration-2023

tmp-migration-2023

*Records***0**  *Topic size***0 B**  *Replication factor***3**

Add label

Consume Produce Configuration Consumer Groups Schema ACL Partitions*6*  Graphs

Produce rate Consume rate   1H 1D 7D 30D

1 msg/s 0 **

Records Disk usage   1H 1D 7D 30D

1 0 **

Show From**Most recent** Limit**Number of records (500)** Partitions**all** Key format Value format  Add filter

Records 0 consumed 00:00

Topics New topic

Search by name Internal topics**Hide** Stream topics**Show** Cleanup policy  Clear all    Display

Topics**** Partitions Count Size

analytics-events 3 0 0 **

analytics-reports 3 0 0 **

analytics-sessions 3 0 0 **

aws.identity.cdc.customers.json.v1 1 77,493 192 *MiB* **

conduktor-console-auditlogs 1 310 82 *KiB* **

connect-configs 1 ≈ 61 85 *KiB* **

connect-offsets 25 ≈ 3,952 2 *MiB* **

connect-statuses 5 ≈ 136 135 *KiB* **

Output / Topic deleted or emptied → post-mortem / 4cb18891-e9c3-43b9-9e8c-a0a4cca5c16e

Output

Everything your agents hand back, reports to read, recommendations to act on, approvals to decide, and a record of direct updates.

Reports Recommendations Approvals Direct updates

Search by title, task or agent Agent

Output Agent

Post-mortem: topic tmp-migration-2023 deleted on local-kafka-cluster Topic deletion post-mortem Topic deleted or emptied → post-mortem

Reclaim list: local-kafka-cluster (Insights low-use topics and idle consumer groups) Low-use insight Low-use topics (Insights)

Post-mortem: topic tmp-migration-2023 deleted on local-kafka-cluster Report Topic deletion post-mortem

Output Trace

Read-only task. Nothing was changed.

*Event***Kafka.Topic.Delete**  *Consumer groups on topic***0**  *Connectors using topic***0 of 12**  *Orphaned schema subjects***0**  *Severity***Low: looks like cleanup**

What happened

Field Value

Topic tmp-migration-2023

Cluster local-kafka-cluster

Action Kafka.Topic.Delete (permitted, authenticated)

Who admin@demo.dev (User)

When 2026-11-16T15:53:23Z

Source IP 192.168.117.1

Topic before deletion 6 partitions, replication factor 3, no custom configs recorded

Earlier audit history for this topic None. The delete is the only event logged for this name.

Consumer groups

**All 9 consumer groups checked**None of the cluster's 9 consumer groups lists tmp-migration-2023 among the topics it reads, and no group name contains 'migration'. Kafka may have dropped offsets for the deleted topic already, so this does not prove that nothing read it in the past.

Connectors

**Local Connect (12 connectors, all RUNNING)**No source or sink connector lists tmp-migration-2023 in its topics. No connector failures are linked to this deletion.

Leftovers: schemas and dead-letter topics

Resource Status Related to deleted topic?

Schema subjects containing 'tmp-migration' None found No orphaned subject

datagen_users_jdbc_dlq 0 messages, 0 consumers No, the name does not match

pageviews.dlq 1 message, 0 consumers No, the name does not match

Other topics containing 'migration' None N/A

Severity assessment

**Harmless cleanup (likely)**No consumer group, connector, ACL lineage or schema subject references the topic. Its name suggests a temporary 2023 migration topic. An admin deleted it on purpose with a permitted call.

**What I couldn't check**The topic's message count, last activity and consumer count from before the deletion were not available, so I couldn't confirm it was empty at the time.

Search⌘K
Ask   A

Add partitions Empty topic  Delete topic

Delete topic?

Deleting this topic is permanent and irreversible.

Please be aware that all of the messages stored in this topic will be permanently deleted and cannot be retrieved.

topic**tmp-migration-2023**

Please type DELETE to confirm***

Cancel Delete

*Priya deletes the topic, and the post-mortem agent checks what the deletion could have broken.*

The delete wakes a custom agent that fires whenever a topic is deleted or emptied through Console. It checks what the topic left behind and rates the severity "Low: looks like cleanup". No consumer group, connector or schema subject depended on it. It's also honest about its limits: it couldn't see the topic's message count from before the deletion, so it couldn't confirm the topic was empty at the time. It leaves Priya one thing to watch: a `Kafka.Topic.Create` for the same name in the audit log means a client still uses it.

## Bob Owns His Topics. Agents Watch the Rest.

Bob checked the topics his team owns and learned what wasn't worth cutting, which is half of a good cost review. The shared waste took Priya, who can see the whole cluster, an agent that lists it every day, and Ask to judge each topic before she deleted anything. A person made every change. Here's which piece did what:

| Piece | What it does | What it did here |
|---|---|---|
| MCP server | Gives your own AI assistant Console's tools, with your permissions | Sized the payments topics for Bob and said what to leave alone |
| Low-use insight | Built-in agent on a schedule: empty, stale and tiny topics and idle groups | Handed Priya the reclaim list |
| Ask Conduktor | Answers questions inside Console, with the cluster's own tools | Judged the invoices topic "not yet" and the empty three "yes" |
| Topic deletion post-mortem | Custom agent, fired by a topic delete in Console | Graded the deletion as cleanup and said what to watch for |

`legacy-invoices-archive` and the `legacy-etl` account are still waiting for an owner, and the same account showed up in [our first use case](https://www.conduktor.io/blog/investigating-a-leaked-kafka-credential) with All on every topic. Finding who owns it is the next job, for Priya and for an agent.

## See It Live on 8 December

Register for our webinar on Tuesday, 8 December, at 11:00 AM ET / 8:00 AM PT to see Conduktor Agents work through cost reviews like this one live: [Leave the Chores to Kafka Agents](https://www.conduktor.io/events/webinars/conduktor-agents-live?src=blog-finding-kafka-waste-safe-to-cut). Can't make it? Register anyway and we'll send you the recording.

---

Related: [Recovering a Kafka Connector From a Poison Pill with Conduktor Agents →](https://www.conduktor.io/blog/recovering-a-kafka-connector-from-a-poison-pill) · [Investigating a Leaked Kafka Credential with Conduktor Agents →](https://www.conduktor.io/blog/investigating-a-leaked-kafka-credential) · [How to Reduce Kafka Costs →](https://www.conduktor.io/blog/how-to-reduce-kafka-costs) · [Introducing Conduktor Agents →](https://www.conduktor.io/blog/conduktor-agents)
