File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
content/en/docs/reference/kubectl Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -289,10 +289,11 @@ kubectl scale --replicas=5 rc/foo rc/bar rc/baz # Scale multip
289
289
## Deleting resources
290
290
291
291
``` bash
292
- kubectl delete -f ./pod.json # Delete a pod using the type and name specified in pod.json
293
- kubectl delete pod,service baz foo # Delete pods and services with same names "baz" and "foo"
294
- kubectl delete pods,services -l name=myLabel # Delete pods and services with label name=myLabel
295
- kubectl -n my-ns delete pod,svc --all # Delete all pods and services in namespace my-ns,
292
+ kubectl delete -f ./pod.json # Delete a pod using the type and name specified in pod.json
293
+ kubectl delete pod unwanted --now # Delete a pod with no grace period
294
+ kubectl delete pod,service baz foo # Delete pods and services with same names "baz" and "foo"
295
+ kubectl delete pods,services -l name=myLabel # Delete pods and services with label name=myLabel
296
+ kubectl -n my-ns delete pod,svc --all # Delete all pods and services in namespace my-ns,
296
297
# Delete all pods matching the awk pattern1 or pattern2
297
298
kubectl get pods -n mynamespace --no-headers=true | awk ' /pattern1|pattern2/{print $1}' | xargs kubectl delete -n mynamespace pod
298
299
```
You can’t perform that action at this time.
0 commit comments