kubectl clear events code example
Example 1: kubectl delete all pods
kubectl delete --all pods
Example 2: kubectl describe to yaml
kubectl describe <type> <name> -o yaml
kubectl delete --all pods
kubectl describe <type> <name> -o yaml