How to delete Kubernetes Job object in Java via io.fabric8

82 views Asked by At

I am using kubernetes io.fabric8 client to manage my Kubernetes Jobs.

Using batch v1 apis kubernetesClient.batch().v1().jobs().inNamespace(namespace)

I am not able to find a way to delete the Job by its name.

1

There are 1 answers

0
Shekhar On

Found it

client.batch().v1().jobs().inNamespace(namespace).resource(job).delete();