mongodb-csharp CRUD Operations in MongoDB C# Delete a Document


Example

var client = new MongoClient("mongodb://localhost:27017");
var database = client.GetDatabase("test");
var collection = database.GetCollection < Interactions > ("Interactions");
    
collection.DeleteOne(s => s.SiteName == "New Example");