Next, after the depth of the root canal has been precisely measured with, for example, the sense of fingers, X-ray photographs, or an electronic root canal length measurement, dental pulp or dentin infected by bacteria is removed with a tool such as a reamer or a file.