Index: library/mongodb/nsfmongo.c =================================================================== diff -u -rd29a51c38be834fe558f1c85069d8bc500d201d9 -re934af71d6cf1335ea45fbaae797f87090b9e365 --- library/mongodb/nsfmongo.c (.../nsfmongo.c) (revision d29a51c38be834fe558f1c85069d8bc500d201d9) +++ library/mongodb/nsfmongo.c (.../nsfmongo.c) (revision e934af71d6cf1335ea45fbaae797f87090b9e365) @@ -755,7 +755,7 @@ } BsonAppendObjv(interp, queryPtr, objc, objv); - success = mongoc_collection_delete(collectionPtr, deleteFlags, queryPtr, writeConcern, &bsonError); + success = mongoc_collection_remove(collectionPtr, deleteFlags, queryPtr, writeConcern, &bsonError); if (success == 0) { result = NsfPrintError(interp, "mongo::collection::delete: error: %s", bsonError.message); @@ -1406,13 +1406,13 @@ /* Remove the file with the specified id */ bson_init(bsonPtr); bson_append_oid(bsonPtr, "_id", 3, &id); - mongoc_collection_delete(mongoc_gridfs_get_files(gridfsPtr), 0, bsonPtr, NULL, &bsonError); + mongoc_collection_remove(mongoc_gridfs_get_files(gridfsPtr), 0, bsonPtr, NULL, &bsonError); bson_destroy(bsonPtr); /* Remove all chunks from the file with the specified id */ bson_init(bsonPtr); bson_append_oid(bsonPtr, "files_id", 8, &id); - mongoc_collection_delete(mongoc_gridfs_get_chunks(gridfsPtr), 0, bsonPtr, NULL, &bsonError); + mongoc_collection_remove(mongoc_gridfs_get_chunks(gridfsPtr), 0, bsonPtr, NULL, &bsonError); bson_destroy(bsonPtr); }