<h1 align="center">
<a href="https://prompts.chat">
Delete a Kafka topic from a cluster
Loading actions...
<a href="https://prompts.chat">
TypeScript and ESLint rules that MUST be followed when creating, modifying, or reviewing any file under apps/frontend/, including .ts, .tsx, .js, and .jsx files. Also apply when discussing frontend linting, type safety, or ESLint configuration.
risks
Before starting: If any tool call fails with "Missing required environment variables", tell the user:
"Set your Confluent Cloud API credentials — generate at https://confluent.cloud/settings/api-keys, then export CONFLUENT_CLOUD_API_KEY=... CONFLUENT_CLOUD_API_SECRET=... and restart Claude Code."
Help me delete a Kafka topic from a cluster.
Follow these steps:
Resolve environment — First, read the file .confluent-context.json in the project root. If it exists and contains an environment_id, use that environment automatically and tell me: "Using active environment {name} ({id}). Run /environments-use to change."
If the file doesn't exist or has no environment set, call list_environments and ask me to pick one.
Pick cluster — Call list_clusters for the chosen environment. Ask me to pick a cluster.
Get cluster API key — First, check .confluent-context.json for a stored API key for this cluster (under api_keys[cluster_id]). If found, use it automatically and tell me: "Using stored API key {api_key} for cluster {cluster_id}."
If no stored key is found, call list_api_keys with the cluster's resource_id to check for existing keys.
create_api_key (credentials are saved automatically).create_api_key. Credentials are saved automatically to context.List topics — Call list_topics to show existing topics. Present as a numbered list.
Ask me to pick the topic to delete.
WARNING: Warn that deleting a topic is irreversible — all messages will be lost.
Ask for explicit confirmation: "Are you sure you want to delete topic {name}? This cannot be undone."
Once confirmed, call delete_topic with the cluster ID, environment ID, cluster API credentials, and topic name.
Confirm deletion was successful.