// The following sample deletes the class MyClass. var objServices = GetObject('cim:root/default'); objServices.Delete ('MyClass');