'remove path from a dict'

def delete(self, path):

    try:
        entry = Yedit.get_entry(self.yaml_dict, path, self.separator)
    except KeyError:
        entry = None
    if (entry is None):
        return (False, self.yaml_dict)
    result = Yedit.remove_entry(self.yaml_dict, path, self.separator)
    if (not result):
        return (False, self.yaml_dict)
    return (True, self.yaml_dict)
