How do I record the sale of a rental property I have had for 13 years and recapture the CCA correctly?

I have also recorded some income and expenses related to renting the property last year prior to selling it.