kubectl delete

The kubectl command that removes objects from the cluster.

It acts immediately on whichever cluster and namespace your context points at.

In more detail

Deleting a bare pod leaves nothing running, while deleting a pod that a controller owns just prompts a replacement. That difference is exactly what a controller adds. Check your context before deleting anything.

Example

kubectl delete pod -l app=web --now

Related terms

Taught in

References