You pointed to the right documentation.
None of those 2 classes (MicrosoftDNS_Domain and MicrosoftDNS_ResourceRecor
Although I have been able to delete Resource Rercords using the ManagementObject wrapper Delete method (as seen in the previous code).
I would think there is a way to delete domains somehow using Windows Management... can't find anyone who faced this requirement previously !





by: TheLearnedOnePosted on 2009-07-29 at 11:55:21ID: 24973340
It would seem that you are correct, as the MSDN reference seems to confirm that:
en-us/libr ary/ms6826 70(VS.85). aspx
d reference doesn't have a Delete method
d Class en-us/libr ary/ms6827 13(VS.85). aspx
MicrosoftDNS_Domain Class
http://msdn.microsoft.com/
...but, the MicrosoftDNS_ResourceRecor
MicrosoftDNS_ResourceRecor
http://msdn.microsoft.com/
It sounds like deleting resources is a simple process, but deleting a domain would be too complex...