Can not delete document in db

var client = new MongoClient(connectionString);
var database = client.GetDatabase(“SoftMasterDb”);

var collection = database.GetCollection(collectionName);

try
{
// Convert the string ID to ObjectId
var objectId = ObjectId.Parse(id);
//
var filter1 = Builders.Filter.Eq(item => item.Id, id);
await collection.DeleteManyAsync(filter1);
//await collection.DeleteOneAsync(filter1);

}
catch (Exception ex)
{
Console.WriteLine($“An error occurred: {ex.Message}”);
}