Removing a rental home from the market

I stopped renting out one of my rental homes on the last day of 2022, taking it off the market and used it for personal use for all of tax year 2023. I entered that data on my 2023 tax program and it basically deleted that property from my Schedule E. It is now 2024 and I'm going to sell the property. I still have the depreciation worksheet from 2022.  It makes me nervous that the data was deleted entirely. After I sell the property I'll need to pay taxes on the capital gain.  What happens to the basis? Am I supposed to subtract the depreciation I took during the previous years of reporting income as a rental property? Will the TurboTax program generate a form showing that information? Did I mess this up?