Clear accumulated data in next simulation

Please allow me to ask, is that I run the file det.mac for the first loop normally, but for loop 2, it pushes the scoring mesh from the first loop to be calculated as well. This causes wrong value from loop 2. I try to find a command to remove scoring mesh at the end of running each loop, but it doesn’t work. This is the command I tried.
/score/delete boxMesh_{dist}
When instructing it to write output, specify the name of boxMesh_{dist} , but when running it, it retrieves all written boxMesh. get the value in the next loop accmulated
scandet.txt (970 Bytes)
det.txt (41 Bytes)