mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-08 04:32:37 +00:00
Delete fails on notfound errors.
If deleting multiple resources, command will continue on error and report not found resources at the end.
This commit is contained in:
@@ -42,12 +42,13 @@ $ kubectl delete pods --all
|
||||
### Options
|
||||
|
||||
```
|
||||
--all=false: [-all] to select all the specified resources
|
||||
--all=false: [-all] to select all the specified resources.
|
||||
--cascade=true: If true, cascade the delete resources managed by this resource (e.g. Pods created by a ReplicationController). Default true.
|
||||
-f, --filename=[]: Filename, directory, or URL to a file containing the resource to delete
|
||||
-f, --filename=[]: Filename, directory, or URL to a file containing the resource to delete.
|
||||
--grace-period=-1: Period of time in seconds given to the resource to terminate gracefully. Ignored if negative.
|
||||
-h, --help=false: help for delete
|
||||
-l, --selector="": Selector (label query) to filter on
|
||||
--ignore-not-found=false: Treat "resource not found" as a successful delete.
|
||||
-l, --selector="": Selector (label query) to filter on.
|
||||
```
|
||||
|
||||
### Options inherited from parent commands
|
||||
@@ -82,6 +83,6 @@ $ kubectl delete pods --all
|
||||
### SEE ALSO
|
||||
* [kubectl](kubectl.md) - kubectl controls the Kubernetes cluster manager
|
||||
|
||||
###### Auto generated by spf13/cobra at 2015-05-21 10:33:11.18056941 +0000 UTC
|
||||
###### Auto generated by spf13/cobra at 2015-05-21 18:30:45.437003409 +0000 UTC
|
||||
|
||||
[]()
|
||||
|
Reference in New Issue
Block a user