fixed a null ptr exception in pruning delete
pruneflag op was not not getting set in any of the switch cases