Using NAME to replace ID in help string

This commit is contained in:
feihujiang
2015-07-01 10:43:02 +08:00
committed by dinghaiyang
parent ceaddc0c44
commit 70036069ee
9 changed files with 34 additions and 34 deletions

View File

@@ -1,11 +1,11 @@
## kubectl delete
Delete a resource by filename, stdin, resource and ID, or by resources and label selector.
Delete a resource by filename, stdin, resource and name, or by resources and label selector.
### Synopsis
Delete a resource by filename, stdin, resource and ID, or by resources and label selector.
Delete a resource by filename, stdin, resource and name, or by resources and label selector.
JSON and YAML formats are accepted.
@@ -17,22 +17,22 @@ submits an update to a resource right when you submit a delete, their update
will be lost along with the rest of the resource.
```
kubectl delete ([-f FILENAME] | (RESOURCE [(ID | -l label | --all)]
kubectl delete ([-f FILENAME] | (RESOURCE [(NAME | -l label | --all)]
```
### Examples
```
// Delete a pod using the type and ID specified in pod.json.
// Delete a pod using the type and name specified in pod.json.
$ kubectl delete -f pod.json
// Delete a pod based on the type and ID in the JSON passed into stdin.
// Delete a pod based on the type and name in the JSON passed into stdin.
$ cat pod.json | kubectl delete -f -
// Delete pods and services with label name=myLabel.
$ kubectl delete pods,services -l name=myLabel
// Delete a pod with ID 1234-56-7890-234234-456456.
// Delete a pod with UID 1234-56-7890-234234-456456.
$ kubectl delete pod 1234-56-7890-234234-456456
// Delete all pods
@@ -84,6 +84,6 @@ $ kubectl delete pods --all
### SEE ALSO
* [kubectl](kubectl.md) - kubectl controls the Kubernetes cluster manager
###### Auto generated by spf13/cobra at 2015-06-26 00:15:55.835198432 +0000 UTC
###### Auto generated by spf13/cobra at 2015-07-01 07:34:21.243108535 +0000 UTC
[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/docs/kubectl_delete.md?pixel)]()