{"action":"created","issue":{"url":"https://api.github.com/repos/fabric8io/kubernetes-client/issues/773","repository_url":"https://api.github.com/repos/fabric8io/kubernetes-client","labels_url":"https://api.github.com/repos/fabric8io/kubernetes-client/issues/773/labels{/name}","comments_url":"https://api.github.com/repos/fabric8io/kubernetes-client/issues/773/comments","events_url":"https://api.github.com/repos/fabric8io/kubernetes-client/issues/773/events","html_url":"https://github.com/fabric8io/kubernetes-client/issues/773","id":233711290,"node_id":"MDU6SXNzdWUyMzM3MTEyOTA=","number":773,"title":"Deleting based on YAML file.","user":{"login":"razavi1371","id":23179572,"node_id":"MDQ6VXNlcjIzMTc5NTcy","avatar_url":"https://avatars1.githubusercontent.com/u/23179572?v=4","gravatar_id":"","url":"https://api.github.com/users/razavi1371","html_url":"https://github.com/razavi1371","followers_url":"https://api.github.com/users/razavi1371/followers","following_url":"https://api.github.com/users/razavi1371/following{/other_user}","gists_url":"https://api.github.com/users/razavi1371/gists{/gist_id}","starred_url":"https://api.github.com/users/razavi1371/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/razavi1371/subscriptions","organizations_url":"https://api.github.com/users/razavi1371/orgs","repos_url":"https://api.github.com/users/razavi1371/repos","events_url":"https://api.github.com/users/razavi1371/events{/privacy}","received_events_url":"https://api.github.com/users/razavi1371/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-06-05T21:07:54Z","updated_at":"2018-11-06T20:56:09Z","closed_at":null,"author_association":"NONE","body":"Hello\r\n\r\nIt seems there is no function in the API to delete a service or deployment using YAML file.\r\nFor deleting a service, you need to save the save the name of the service and delete it using\r\nclient.services().withName(serviceName).delete();\r\nIs there a better way or it is the only way?\r\n\r\nThanks"},"comment":{"url":"https://api.github.com/repos/fabric8io/kubernetes-client/issues/comments/436405296","html_url":"https://github.com/fabric8io/kubernetes-client/issues/773#issuecomment-436405296","issue_url":"https://api.github.com/repos/fabric8io/kubernetes-client/issues/773","id":436405296,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNjQwNTI5Ng==","user":{"login":"traviswinter","id":4635971,"node_id":"MDQ6VXNlcjQ2MzU5NzE=","avatar_url":"https://avatars0.githubusercontent.com/u/4635971?v=4","gravatar_id":"","url":"https://api.github.com/users/traviswinter","html_url":"https://github.com/traviswinter","followers_url":"https://api.github.com/users/traviswinter/followers","following_url":"https://api.github.com/users/traviswinter/following{/other_user}","gists_url":"https://api.github.com/users/traviswinter/gists{/gist_id}","starred_url":"https://api.github.com/users/traviswinter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/traviswinter/subscriptions","organizations_url":"https://api.github.com/users/traviswinter/orgs","repos_url":"https://api.github.com/users/traviswinter/repos","events_url":"https://api.github.com/users/traviswinter/events{/privacy}","received_events_url":"https://api.github.com/users/traviswinter/received_events","type":"User","site_admin":false},"created_at":"2018-11-06T20:56:09Z","updated_at":"2018-11-06T20:56:09Z","author_association":"CONTRIBUTOR","body":"This has probably long been solved, but you can accomplish this by building the YAML into  HasMetadata objects using \"_kubeClient.load(yamlInputStream).get();_\" then calling \"_kubeClient.resource(object ).inNamespace(namespace).delete()_\"."}}
{"actor":{"display_login":"traviswinter"}}