Section: Delete, Copy, and Exec

Force delete pod

bash
bash
kubectl delete pod stuck-pod --grace-period=0 --force
Explanation

Force-delete a stuck pod.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Delete, Copy, and Exec
Delete pod
Delete a pod so the controller can recreate it.
OpenIn sheetbashsame section
Delete resources from file
Delete objects defined in a manifest file.
OpenIn sheetbashsame section
Port-forward pod
Forward a local port to a pod port.
OpenIn sheetbashsame section
Open shell in pod
Start an interactive shell inside a container.
OpenIn sheetbashsame section
Run command in pod
Run a non-interactive command in a container.
OpenIn sheetbashsame section
Copy file to pod
Copy a local file into a pod.
OpenIn sheetbashsame section