src/main/java/org/mongojack/JacksonMongoCollection.java
/**
     * Removes objects from the database collection.
     * 
     * @param query
     *            the object that documents to be removed must match
     * @param concern
     *            WriteConcern for this operation
     * @return The result
     * @throws MongoWriteException
     *             If the write failed due some other failure specific to the delete command
     * @throws MongoWriteConcernException
     *             If the write failed due being unable to fulfill the write concern
     * @throws MongoException
     *             If an error occurred
     */
Removes objects from the database collection.


Removes objects from the database collection .
public DeleteResult remove(Document query, WriteConcern concern) throws MongoException, MongoWriteException, MongoWriteConcernException {
        query = serializeFields(query);
        if (concern != null) {
            return mongoCollection.withWriteConcern(concern).deleteMany(query);
        } else {
            return mongoCollection.deleteMany(query);
        }
    }
public DeleteResult remove ( Document query , WriteConcern concern ) throws MongoException , MongoWriteException , MongoWriteConcernException { query = serializeFields ( query ) ; if ( concern != null ) { return mongoCollection . withWriteConcern ( concern ) . deleteMany ( query ) ; } else { return mongoCollection . deleteMany ( query ) ; } }
Removes objects from the database collection.
Removes objects from the database collection .