← Learn
Dangerous
kubectl delete namespace production

cross-platform · bash · Intermediate

Deletes a namespace and cascades to every deployment, service, secret, and persistent volume claim inside it. The verb is plain English and there are no shell metacharacters, yet it removes an entire production environment.

Signals to notice

  • Cascading delete of every resource in the namespace
  • Targets production
  • No dry-run flag to preview the blast radius

Think you can spot these under time pressure?

Start Training

More Kubernetes