Ahhh, was entering it into the Value box! Doh!.
However, I have now pasted the line into the Formula Editor and put the error field onto the view and I'm getting this error:
Action: Delete. Arguments: xpath:
/dfs:myFields/dfs:dataFields/d:ExpensesMain/d:ExpenseItems/[2] . Details:
Expression must evaluate to a ...