How do you book depreciated assets when selling investment property?

I sold my investment property this year, and had to install a new roof in 2017 for about $10K that I have taken depreciation for in 2018 and 2019.  This gives me 2 entries under "property assets" -- the house and the roof.  For the house, I believe I should book this by reducing the sales price of the house by $10K.  For the roof, I believe I should enter the sales price of the roof as $10K (no profit or loss) while also entering the prior depreciation taken.  Is this correct?  Any other considerations?  Thank you!