corneliusweig / ketall

Like `kubectl get all`, but get really all resources
Apache License 2.0
672 stars 28 forks source link

How to delete resources #146

Closed varac closed 3 years ago

varac commented 3 years ago

Is your feature request related to a problem? Please describe.

I'd like to delete all resources found by ketall.

Describe the solution you'd like

I can think of 2 solutions:

  1. Implement a --delete flag to delete all matching resources
  2. Create an output that can get piped into kubectl delete i.e. This would be more generic, since you could then also apply other actions than delete.

Describe alternatives you've considered

-

Additional context

-

corneliusweig commented 3 years ago

Doesn't that work already?

ketall -o name | kubectl delete

FWIW, printing the resource names should be supported. On the other hand, a --delete option doesn't really fit into a command that's called get-x.

varac commented 2 years ago

Doesn't that work already?

ketall -o name | kubectl delete

FWIW, printing the resource names should be supported. On the other hand, a --delete option doesn't really fit into a command that's called get-x.

Unfortunatly this doesn't work since it's lacking namespace information.