<human>:  Can you provide step-by-step instructions for replacing a toilet flange?
<bot>: Turn off the water supply to your toilet.2 Unscrew the bolts that connect the toilet to the floor and remove the toilet from the floor.3 Disconnect the flange from the drainpipe.4 Carefully remove the old flange.5 Clean the floor area around the drainpipe.6 Put the new flange into place where the old one used to be.7 Secure the flange to the drainpipe with screws.8 Place the wax ring around the base of the flange.9 Place the toilet back over the flange connecting it to the floor.10 Secure the bolts to the flange.11 Turn the water supply back on and test the toilet for leaks.