Deductions & credits

For residential real estate purposes, when you purchase the property and you place in service the entire house. Say 10 years down the road you replace the roof. At that point, you do not depreciate both the old and the new roof. At the point of the new roof replacement, the old roof cost is expensed, but I do not know how to do that in Turbo Tax. Please advise