@Adrienne174 The ratings given to each listing only stick to the listing, and each one is cumulative across the entire period it's been active.
The only area in which your average rating as a host across all listings applies is in calculating eligibility for Superhost, and for that it's only the ratings received in the last 12 months. This is not affected by deactivating listings.
All written reviews for inactive listings will still be visible on your profile permanently.