In XDocument how to remove the data in specific node

hi Team,

There is a XML in which i will be adding the data dynamically using Invoke code activity, for an instance if there is any error then i need to remove the data for that respective sequence from the node Fields rest all the data i want to leave it for further use of the same XDocument Variable.

This the XML Template that I am using


Any suggestions will be helpfull.

Thanks in Advance.