Remove data from iphone 6 where battery malfunctioned
I kept my old iphone 6 as a backup. The battery has now expanded so I should not recharge it. It is not worth replacing the battery financially. How can I remove the data from the phone before disposing of it?