Hi @Maithili_Kalkar ,

Unfortunately, I’m not able to reproduce this error. I’m using MongoDB Community 3.6.0 with the C# driver 2.23.1 as you mentioned. The retryWrites option is set in my connection string as follows:

private string connectionString = "mongodb://localhost:27017/retryWrites=false";

The query used to perform the deleteManyAsync operation looks like this:

  var filter = Builders<Restaurant>.Filter.Eq(r => r.Cuisine, "Brazilian");
  var result = await _restaurantsCollection.Find(filter).ToListAsync();
  Console.WriteLine("Trying to Delete " + result.Count + " Restaurants");
  return await _restaurantsCollection.DeleteManyAsync(filter);

Not sure if that helps but if there’s any more information you can share or a sample zip file containing sample code to reproduce this, we’d be happy to take a look at it.

Thanks,

Rishit.