destroy-cluster

destroy-cluster is a command for Claude Code from wangke19/gemini-ai-helpers. It costs 11 tokens per session (2,604 once invoked), scanned C, original, Apache-2.0.

A cleanup command that permanently destroys an OpenShift cluster previously created by the matching cluster-creation command. It also removes the cluster's cloud resources and related configuration.

In plain words
What is it for?
Use it to remove a development or test cluster and its associated cloud resources after testing.
Why use it?
It clears failed or finished test clusters so their machines, storage, quotas, and other resources are no longer used.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: positional $N argument.

Not installable: its command points at a path on the author’s own machine, so it runs nowhere else. The line is /home/user/clusters/test-cluster-install-20251028-120000.

Good fit Use it to remove a development or test cluster and its associated cloud resources after testing.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

There is no command for this one: it runs only inside a plugin, and the catalogue could not identify which plugin ships it. The source is linked below.

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for destroy-cluster

README.md
[![agentmods](https://agentmods.dev/badge/commands/wangke19/gemini-ai-helpers/destroy-cluster.svg)](https://agentmods.dev/commands/wangke19/gemini-ai-helpers/destroy-cluster)
Your own site
<a href="https://agentmods.dev/commands/wangke19/gemini-ai-helpers/destroy-cluster"><img src="https://agentmods.dev/badge/commands/wangke19/gemini-ai-helpers/destroy-cluster.svg" alt="Measured on agentmods" height="20"></a>
Per session 11 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,604 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00011 $0.02604
Opus 5 $0.00005 $0.01302
Sonnet 5 $0.00002 $0.00521
Haiku 4.5 $0.00001 $0.00260

Measured 4d ago against content hash 9fd1d82c7612, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade C, and why

destroy-cluster scanned grade C with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

rm -rf "$INSTALL_DIR"
extensions/openshift/commands/destroy-cluster.md · 361 lines

How it starts

The opening of the file, as written. The whole thing — 361 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Name

openshift:destroy-cluster

Synopsis

/openshift:destroy-cluster [install-dir]

Description

The destroy-cluster command safely destroys an OpenShift Container Platform (OCP) cluster that was previously created using the /openshift:create-cluster command. It locates the appropriate installer binary, verifies the cluster information, and performs cleanup of all cloud resources.

This command is useful for:

  • Cleaning up development/test clusters after testing
  • Removing failed cluster installations
  • Freeing up cloud resources and quotas

⚠️ WARNING: This operation is irreversible and will permanently delete:

  • All cluster resources (VMs, load balancers, storage, etc.)
  • All data stored in the cluster
  • All configuration and credentials
  • DNS records (if managed by the installer)

Prerequisites

Before using this command, ensure you have:

  1. Installation directory from the original cluster creation

    • Contains the cluster metadata and terraform state
    • Located at {cluster-name}-install-{timestamp} by default
  2. OpenShift installer binary that matches the cluster version

    • Should be available at ~/.openshift-installers/openshift-install-{version}
    • Same version used to create the cluster
  3. Cloud Provider Credentials still configured and valid

    • Same credentials used during cluster creation
    • Must have permissions to delete resources
  4. Network connectivity to the cloud provider

    • Required to communicate with cloud APIs

Arguments

  • install-dir (optional): Path to the cluster installation directory
    • Default: Interactive prompt to select from available installation directories
    • Must contain cluster metadata files (metadata.json, terraform.tfstate, etc.)
    • Example: ./my-cluster-install-20251028-120000

Implementation

The command performs the following steps:

1. Locate Installation Directory

If install-dir is not provided:

  • Search for installation directories in the current directory
  • Look for directories matching pattern *-install-* or containing .openshift_install_state.json
  • Present a list of found directories to the user for selection
  • Allow user to manually enter a path if directory not found

Read the full file on GitHub · 361 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 361 lines · 11 tokens per session scan C 9fd1d82c7612

Subscribe to this mod's changes

destroy-cluster is a command published in the GitHub repository wangke19/gemini-ai-helpers (2 stars, last pushed 5mo ago), licensed Apache-2.0. It adds 11 tokens to every session and 2,604 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.