If you used a home equity loan to pay debt or make a non-home-related purchase, starting in 2018 you can no longer deduct the interest.