What would be more user friendly is if you have a delete button on the first row even if there's only one, and instead of having the row deleted you change reset the row
if (this.parent.instanceManager.count > 1){
//remove instance
} else{
xfa.host.resetData(this.resovleNode("Row1").somExpression);
}
if you hide the button delete you have to check if the count is higher than one you show the button, if the row is == 1 you hide the button
button.presence = "visible";
button.presence = "hidden";