'delete a list of keys'

def delete_env_var(self, keys):

    if (not isinstance(keys, list)):
        keys = [keys]
    env_vars_array = self.get_env_vars()
    modified = False
    idx = None
    for key in keys:
        for (env_idx, env_var) in enumerate(env_vars_array):
            if (env_var['name'] == key):
                idx = env_idx
                break
        if idx:
            modified = True
            del env_vars_array[idx]
    if modified:
        return True
    return False
