Hi,
It look like should delete the resources (pod, rc, route, dc ...) one by one. Is it possible to call a restful api to implement the "oc delete all -l
Thanks.
openshift v3.2.0.20
kubernetes v1.2.0-36-g4a3f9c5
etcd 2.2.5
Expanding all to a set of named resources is done client-side.
You can pass a labelSelector to a deletecollection API call like this, rather than listing and deleting one-by-one:
DELETE /api/v1/namespaces/<foo>/pods?labelSelector=key%3Dvalue
@liggitt Ok, I got it, thanks!
@warmchang you can find a full specification for our REST API using Swagger (aka OpenAPI Spec) here: https://github.com/openshift/origin/tree/master/api/swagger-spec
@stevekuznetsov thank you! And can be found by "https://10.2.2.2:8443/swaggerapi/oapi/v1". :smile:
Most helpful comment
Expanding
allto a set of named resources is done client-side.You can pass a labelSelector to a deletecollection API call like this, rather than listing and deleting one-by-one: