code: public DocumentT findOneAndDelete(final Bson filter) {
      return operations.findOneAndModify(
              "findOneAndDelete",
              filter,
              new BsonDocument(),
              new RemoteFindOneAndModifyOptions(),
              documentClass).execute(service);
    }
docs: Finds a document in the collection and delete it.
  
  @param filter the query filter
  @return the resulting document