// delete all rows in a given scan
int count = 0;
int stat;
final boolean allowFetch = true; // request new batches when exhausted
while ((stat = op.nextResult(allowFetch)) == 0) {
// delete all tuples within a batch
do {
op.deleteCurrentTuple();
count++;