You can dynamically delete individual entries in a parent-child instance list without collapsing the visual tree
To do this use #AvListManager.BeginListUpdate Mode(DYNAMIC), as in these examples:
To delete employee number A1012 from the instance list:
Invoke Method(#avListManager.BeginListUpdate) Mode(DYNAMIC)
Invoke Method(#avListManager. RemoveFromList) Akey1('ADM') Akey2('01')
Akey3('A1012') BusinessObjectType(EMPLOYEES)
Invoke Method(#avListManager.EndListUpdate)
To delete SECTION ADM-02 and its child EMPLOYEEs from the instance list
Invoke Method(#avListManager.BeginListUpdate) Mode(DYNAMIC)
Invoke Method(#avListManager.RemoveFromList) AKey1('ADM') AKey2('02')
BusinessObjectType(SECTIONS)
Invoke Method(#avListManager.EndListUpdate)
Also see Updating and Deleting Instance List Entries