[This is preliminary documentation and subject to change.]
The DIWbemServices.DeleteInstance method deletes the instance specified in the object path. You can only delete instances in the current namespace.
If a dynamic provider supplied the instance, it is sometimes not possible to delete the instance unless the provider supports instance deletion.
DIWbemServices.DeleteInstance(
  [in]  ObjectPath As String,                          
  [in] lFlags As Long,                              
  [in] pCtx As Object,                        
  [out, OPTIONAL] ppCallResult As Object 
) As Long
 | WBEM_E_ACCESS_DENIED | The current context does not have adequate rights to delete the object. | 
| WBEM_E_FAILED | Unspecified error. | 
| WBEM_E_INVALID_CLASS | The specified class does not exist. | 
| WBEM_E_INVALID_OPERATION | The object cannot be deleted. | 
| WBEM_E_NOT_FOUND | The object did not exist. | 
| WBEM_E_OUT_OF_MEMORY | There was not enough memory to complete the operation. | 
| WBEM_NO_ERROR | Success. | 
For more information on return values see Visual Basic error handeling and return values
Error Objects, DIWbemCallResult, DIWbemServices.DeleteInstanceAsync, Object Paths