Hmm, it worked for me if I download it. Anyway, here is the code I am using:
for (var i=0; i < form1.page1.pricelist.ItemTable.BodySection.Subheader.addremove.instanceManager.count -1; i++)
{
xfa.resolveNode("form1.page1.pricelist.ItemTable.BodySection.SubHeader.addremove[" + i + "]").presence = "hidden"
}
pricelist is a subform, Tables start at ItemTable. addremove is the name of the subform where two buttons are located in a table cell or row Subheader.
It actually does not remove any instances so I do not know what is out of place.
Appreciate any help