Another handy feature of the Namespaces is their cascading effect. If, for example, we delete the testing Namespace, all the objects and the resources running inside it will be removed as well.
kubectl delete ns testing kubectl -n testing get all
We deleted the testing Namespace and retrieved all the objects residing in it. The output is as follows:
NAME READY STATUS RESTARTS AGE po/go-demo-2-api-56dfb69dbd-8w6rf 0/1 Terminating 0 2m po/go-demo-2-api-56dfb69dbd-hrr4b 0/1 Terminating 0 2m po/go-demo-2-api-56dfb69dbd-ws855 0/1 Terminating 0 2m po/go-demo-2-db-5b49cc946b-xdd6v 0/1 Terminating 0 2m
Please note that, in your case, the output might show more objects. If that's the case, you were too fast, and Kubernetes did not yet have time to remove them.
After...