Welcome to the Linux Foundation Forum!

Lab 8.3 Delete works with --all-namespaces

There is a mistake in the lab. The lab says

  1. Try to delete all Pods with the app=nginx label, in all namespaces. You should receive an error as this function must be
    narrowed to a particular namespace. Then delete using the appropriate namespace.
    [email protected]:~$ kubectl delete pods -l app=nginx \
    Error: unknown flag: --all-namespaces

but it works for me. This is a mistake in the lab. Maybe this functionality didn't exist previously but it works now. kubectl delete --help shows --all-namespaces as an option.


  • chrispokorni
    chrispokorni Posts: 1,458

    Hi @jdnovick,

    Thanks for bringing this to our attention. You are correct, this behavior has recently changed.
    The lab exercise will be corrected in a future course update release.



Upcoming Training