If a geo-thermal system co-exist with the sell of rental property, can I deduct it?

sold rental property with a geo-thermal system?  deduct both?