Based on comment, I'm not sure this is what you mean.  This is just throwing away the name <code>default_xml</code>, leaving value to be garbage-collected.  It's not going to do anything with the actual network on the host.  Did you mean <code>del default_xml.defined</code>?