kubectl delete
Resource ManagementDelete resources
Options & Flags
Available options for this command
-fDelete from file
--grace-periodSeconds to wait before force delete
--forceForce deletion
-lDelete by label selector
Examples
Common usage examples
Delete specific pod
kubectl delete pod mypodDelete resources from file
kubectl delete -f deployment.yamlDelete pods by label
kubectl delete pods -l app=nginxForce delete immediately
kubectl delete pod mypod --force --grace-period=0Notes
- Pods managed by deployments will be recreated
Related Commands
You might also find these useful