Investors & landlords

I don't agree.  Whether the owner wanted to sell the property more than renting it is irrelevant, as long as the property was really available for rent: appearing in rental listings, having a For Rent sign, etc.  The expenses are not deductible rental expenses if the property is not available for rent.  Conversely, since the property was available for rent, the ordinary and necessary expenses would be deductible.