add delete function to batchTree