driver-legacy/src/main/com/mongodb/DBCollection.java
public WriteResult remove(final DBObject query, final WriteConcern writeConcern) {
        return remove(query, new DBCollectionRemoveOptions().writeConcern(writeConcern));
    }
public WriteResult remove(final DBObject query, final WriteConcern writeConcern) {
        return remove(query, new DBCollectionRemoveOptions().writeConcern(writeConcern));
    }
public WriteResult remove ( final DBObject query , final WriteConcern writeConcern ) { return remove ( query , new DBCollectionRemoveOptions ( ) . writeConcern ( writeConcern ) ) ; }
Remove documents from a collection.

@param query        the deletion criteria using query operators. Omit the query parameter or pass an empty document to delete all
documents in the collection.
@param writeConcern {@code WriteConcern} to be used during operation
@return the result of the operation
@throws com.mongodb.WriteConcernException if the write failed due some other failure specific to the delete command
@throws MongoException if the operation failed for some other reason
@mongodb.driver.manual tutorial/remove-documents/ Remove Documents
Remove documents from a collection .