Commands.app

kubectl delete

Resource Management

Delete resources

Options & Flags
Available options for this command
-f

Delete from file

--grace-period

Seconds to wait before force delete

--force

Force deletion

-l

Delete by label selector

Examples
Common usage examples

Delete specific pod

kubectl delete pod mypod

Delete resources from file

kubectl delete -f deployment.yaml

Delete pods by label

kubectl delete pods -l app=nginx

Force delete immediately

kubectl delete pod mypod --force --grace-period=0
Notes
  • Pods managed by deployments will be recreated
Related Commands
You might also find these useful