driver-legacy/src/main/com/mongodb/DBCollection.java
@Nullable
    public DBObject findAndRemove(@Nullable final DBObject query) {
        return findAndModify(query, null, null, true, null, false, false);
    }
@Nullable
    public DBObject findAndRemove(@Nullable final DBObject query) {
        return findAndModify(query, null, null, true, null, false, false);
    }
Atomically remove and return a single document. The returned document is the original document before removal.

@param query specifies the selection criteria for the modification
@return the document as it was before the modifications
@throws WriteConcernException if the write failed due some other failure specific to the update command
@throws MongoException if the operation failed for some other reason
@mongodb.driver.manual reference/command/findAndModify/ Find and Modify