udpated remote delete processing for better memory consumption and performance