Removes Deleted Nodes and Links from the xml during a local save