If you sell property you held for rental purposes, you can deduct the ordinary and necessary expenses for managing, conserving, or maintaining the property until it is sold. If the property isn’t held out and available for rent while listed for sale, the expenses aren’t deductible rental expenses.