kubectl get yaml and create force code example
Example 1: kubectl delete all pods
kubectl delete --all pods
Example 2: delete a deployment in kubernetes
$ kubectl delete deploy/<deployment_name>
kubectl delete --all pods
$ kubectl delete deploy/<deployment_name>