Check out example codes for "delete all pods in default namespace". It will help you in understanding the concepts better.

Code Example 1

kubectl delete --all pods

Code Example 2

kubectl delete --all pods --namespace default

Learn ReactJs, React Native from akashmittal.com