Skip to content

Commit 8e7593e

Browse files
committed
Adding example for interactive delete
1 parent a15dca3 commit 8e7593e

File tree

1 file changed

+4
-1
lines changed
  • staging/src/k8s.io/kubectl/pkg/cmd/delete

1 file changed

+4
-1
lines changed

staging/src/k8s.io/kubectl/pkg/cmd/delete/delete.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,10 @@ var (
103103
kubectl delete pod foo --force
104104
105105
# Delete all pods
106-
kubectl delete pods --all`))
106+
kubectl delete pods --all
107+
108+
# Delete all pods only if the user confirms the deletion
109+
kubectl delete pods --all --interactive`))
107110
)
108111

109112
type DeleteOptions struct {

0 commit comments

Comments
 (0)