the detection step of irradiating the glass substrate surface with a primary X-ray, and detecting a generated fluorescent X-ray to detect an element present on the glass substrate surface, and the removal step of removing an element other than a glass