Question: We have an apple tree in our garden that produces apples each year. Its roots are now causing damage to our house. Can we cut it down?
Answer: The Torah (Devarim 20:19) writes that when fighting against a city, one must be careful not to destroy any fruit trees.
Rambam (Melachim 6:8) writes that if the tree is causing any type of damage, one may destroy it.
While the Kaf Hachaim (YD 116:85) writes that one shouldn’t destroy a fruit tree to build an extension, most poskim allow one to (See Rosh, Bava Kama 91b; Aruch Hashulchan YD 116:13, Yabia Omer YD 5:12:3).
R’ Ovadia Yosef (Yabia Omer YD 5:12:5) writes that even when it is permitted to destroy the tree, it is best to sell the tree to a non-Jew first, and let them destroy it. R’ Shmuel Wosner (Shevet Halevi 5:95) writes similarly, though adds that one should also sell him the land on which the tree grows (See Teshuvos Vehanhagos 2:729).
While the Gemara (Pesachim 50b) writes that one who destroys fruit trees will not see a good sign all his life, the poskim (Aruch Hashulchan ibid; Yabia Omer ibid; Shevet Halevi 6:112) write that when one does so in a permissible manner, one does not need to be concerned.