npx skills add ...
npx skills add nvidia/k8s-launch-kit --skill k8s-launch-kit-clean
Remove an NVIDIA Network Operator deployment from a Kubernetes cluster with l8k clean. Use when the user explicitly asks to uninstall, tear down, remove, reset, or clean a Network Operator installation, delete its custom resources, or keep the Helm chart while clearing Network Operator CRs.
npx skills add nvidia/k8s-launch-kit --skill k8s-launch-kit-clean
Read k8s-launch-kit-shared first for binary discovery, JSON output, and error
handling.
Treat cleanup as an irreversible live-cluster mutation. Require explicit user authority to remove the deployment. Do not infer cleanup authority from a request to inspect, validate, troubleshoot, or explain the command.
Before running it:
Use read-only checks when the target is not already explicit:
Stop and ask for direction if the kubeconfig, cluster, namespace, or Helm retention choice remains ambiguous.
An AI agent uses JSON mode after the user authorizes the exact target:
Omit --network-operator-namespace only when the user expects l8k to resolve
it from --user-config, ./cluster-config.yaml, an explicit --config-dir,
or the nvidia-network-operator default. l8k does not trust in-cluster objects
to select a destructive cleanup target. The same trusted local config supplies
networkOperator.skipHelmChart; when true, l8k treats the Helm release as
externally owned and retains it.
To retain the installed release and its chart-managed resources:
JSON mode auto-confirms. Do not invoke it until the read-only target checks and
authorization are complete. l8k clean has no dry-run mode.
The command:
HostDeviceNetwork, IPoIBNetwork, MacvlanNetwork,
NicNodePolicy, and NicClusterPolicy instances cluster-wide.network-operator Helm release last unless
networkOperator.skipHelmChart or --keep-helm-chart retains it.Do not manually strip finalizers as part of the normal workflow. If cleanup waits indefinitely, inspect the affected CR, operator pods, and events; request separate authority before forcing finalizer removal.
Require .success == true, then report:
.cleanup.namespace.cleanup.customResourcesDeleted.cleanup.helmReleaseRemoved.cleanup.keepHelmChartcleanup.keepHelmChart is the effective policy from config plus the explicit
flag, not merely whether --keep-helm-chart appeared on the command line.
If the Helm release was meant to be removed, verify it is absent with the same
read-only helm list command. If it was kept, verify it remains deployed.