public static void DeleteInstanceASync(CimSession cimSession, string cimNamespace, string cimClassName) { try { CimInstance deleteInstance = DeleteInstanceCore(cimSession, cimNamespace, cimClassName); if (deleteInstance == null) { Console.WriteLine("DeleteInstance operation not performed"); return; } CimAsyncStatus enumeratedInstances = cimSession.DeleteInstanceAsync(cimNamespace, deleteInstance, GetOperationOptions()); TestObserver<object> observer = new TestObserver<object>(); IDisposable disposeable = enumeratedInstances.Subscribe(observer); observer.WaitForCompletion(); } catch (CimException ex) { PrintCimException(ex); } catch( Exception ex) { Console.WriteLine(ex.Message); } }