Deleting a Kubernetes Secret with k9s
--A coding agent created a Secret in my HomeLab on its own, so I needed to delete it. I took the opportunity to try deleting the Secret with k9s, and I’m writing down the steps here as a memo.
1. Install k9s
First, install it:
brew install k9s
2. Launch k9s
k9s
3. List the Secrets
When k9s opens, the Pod view is selected by default. Type :secret to switch to the Secret view.
4. Delete
Move the cursor to the Secret you want to delete and press Ctrl + d. A confirmation dialog appears, so select OK.
That’s it. Making destructive changes from k9s is a little nerve-racking, but it’s so convenient!