Kubectl tricks to delete

Delete all pods(po) /replicasets(rs) in specific namespace. Here test is the namespace

kubectl delete po --all --namespace test
kubectl delete rs --all --namespace test

Deleting a namespaces

kubectl delete namespace test

Delete an kubernetes object using yaml/json

kubectl delete -f pod.yaml
kubectl delete -f deployment.yaml
kubectl delete -f namespace.json

Delete a specific resource

kubectl delete pod <pod_name> // If pod is created in the default namespace
kubectl delete pod <pod_name> --namespace test // If pod is created in the test namespace