public <ResultT> ResultT findOneAndDelete(
          final Bson filter,
          final RemoteFindOneAndModifyOptions options,
          final Class<ResultT> resultClass) {
    return proxy.findOneAndDelete(filter, options, resultClass);
  }
public < ResultT > ResultT findOneAndDelete ( final Bson filter , final RemoteFindOneAndModifyOptions options , final Class < ResultT > resultClass ) { return proxy . findOneAndDelete ( filter , options , resultClass ) ; }
Finds a document in the collection and delete it.

@param filter      the query filter
@param options     A RemoteFindOneAndModifyOptions struct
@param resultClass the class to decode each document into
@param <ResultT>   the target document type of the iterable.
@return the resulting document