delete

delete is a command for coding agents from wangke19/gemini-ai-helpers. It costs 10 tokens per session (1,398 once invoked), scanned A, original, Apache-2.0.

A command that deletes Gateway and GatewayClass resources from a Kubernetes or OpenShift cluster. Gateway resources are namespace-level traffic-entry definitions, while a GatewayClass describes the controller that manages them.

In plain words
What is it for?
Use it to remove Gateway API installations from a selected namespace and delete the cluster-wide GatewayClass.
Why use it?
It removes these resources with confirmation and checks that deletion succeeded, reducing manual cleanup steps.

Command

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/wangke19/gemini-ai-helpers/delete
Clone the repo
git clone --depth 1 https://github.com/wangke19/gemini-ai-helpers

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 delete

README.md
[![agentmods](https://agentmods.dev/badge/commands/wangke19/gemini-ai-helpers/delete.svg)](https://agentmods.dev/commands/wangke19/gemini-ai-helpers/delete)
Your own site
<a href="https://agentmods.dev/commands/wangke19/gemini-ai-helpers/delete"><img src="https://agentmods.dev/badge/commands/wangke19/gemini-ai-helpers/delete.svg" alt="Measured on agentmods" height="20"></a>
Per session 10 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,398 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00010 $0.01398
Opus 5 $0.00005 $0.00699
Sonnet 5 $0.00002 $0.00280
Haiku 4.5 $0.00001 $0.00140

Measured yesterday against content hash 8a596d4eb0e1, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

delete scanned grade A with 0 findings 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 yesterday.

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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

extensions/gwapi/commands/delete.md · 149 lines

How it starts

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

Name

gwapi:delete

Synopsis

/gwapi:delete [namespace]

Description

The gwapi:delete command removes Gateway API resources from a Kubernetes or OpenShift cluster. It deletes:

  1. Gateway resources (namespace-scoped)
  2. GatewayClass resources (cluster-scoped)

The command uses oc (preferred) or kubectl to delete the resources safely. It provides confirmation before deletion and verifies successful removal.

Arguments

  • $1 (optional): Target namespace for deleting Gateway resources. If not specified, deletes Gateway resources from the openshift-ingress namespace (as defined in the YAML files) and the cluster-scoped GatewayClass.

Implementation

  1. Tool Detection

  2. Cluster Connection Verification

    • Verify cluster connectivity: oc whoami or kubectl cluster-info
    • If connection fails, inform the user to authenticate to their cluster:
      • For OpenShift: oc login <cluster-url>
      • For Kubernetes: Configure kubeconfig properly
  3. Resource Discovery

    • Check for existing Gateway resources:
      • If namespace argument provided: oc get gateway -n <namespace>
      • If no namespace argument: oc get gateway --all-namespaces
    • Check for existing GatewayClass resources: oc get gatewayclass
    • If no resources found:
      • Display: "No Gateway API resources found to delete"
      • Exit successfully
  4. Display Resources to be Deleted

    • Show a clear list of resources that will be deleted:
      The following resources will be deleted:
      
      GatewayClass:
      - openshift-default
      
      Gateway (openshift-ingress):
      - gateway
      

Read the full file on GitHub · 149 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. yesterday First seen · 149 lines · 10 tokens per session scan A 8a596d4eb0e1

Subscribe to this mod's changes

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