'call oc delete on a resource'

def _delete(self, resource, name=None, selector=None):

    cmd = ['delete', resource]
    if (selector is not None):
        cmd.append('--selector={}'.format(selector))
    elif (name is not None):
        cmd.append(name)
    else:
        raise OpenShiftCLIError('Either    name    or    selector    is    required    when    calling    delete.')
    return self.openshift_cmd(cmd)
