After PSG (phosphorous) is etched away, the n-doped layer is removed from the edges, using a laser tool. It generates a groove close to and along the edge of the wafer.
With an accurate X-Y table and vision system, the laser beam moves close to and along the edges.