@Rishit_Bhatia @alexbevi

I found the issue for me, it was a cosmosdb thing. You can only use DeleteMany with retryable writes enabled, as long as the filter has the partition key.

I think the error message from MongoDb driver is a little misleading then, or at least, not clear what the issue is.