Sorry i should of thought of that, Line 2 here is Line 25 in my MSE
// Delete all Method nodes from the CAML Batch XML
XPathNavigator secDSNav = DataSources
["CustomListCAML"].CreateNavigator();
XPathNodeIterator iter = secDSNav.Select("/Batch/Method");
int methodNodesCount = iter.Count;
XPathNavigator firstMethodNav =
secDSNav.SelectSingleNode("/Batch/Method[1]",
NamespaceManager);
XPathNavigator lastMethodNav =
secDSNav.SelectSingleNode("/Batch/Method[" +
methodNodesCount.ToString() + "]",
NamespaceManager);
firstMethodNav.DeleteRange(lastMethodNav);