easykubectl

Delete all resources defined in a YAML or JSON configuration file

command

kubectl delete -f FILENAME

also accepted

kubectl delete -f

Command breakdown

Part of the Kubernetes CLI (kubectl) — Resource Operations category.

kubectldelete-fFILENAME
FlagPurpose
-fBoolean flag

Test your recall — not just your reading.

Practice with interactive quiz →