At first glance, I think your problem might be that you’re calling an async function from a synchronous Main without waiting for it to complete. So your Main function is returning and the program closing before the async operations in the worker thread pool are done.
Try one of two things:
- Add .Wait() to the end of the async call. Note that this is not recommended practice in production due to deadlock issues, but should work here.
new Couchbase().DeleteFeature().Wait();
- If you’ve upgraded to VS2017.3, you can use the new language feature in C# 7.1 for an async Main function. C# 7 Series, Part 2: Async Main | Microsoft Learn