Don't. Actually, if that happen, the first thing you have to do is stopping saving any data on that drive of your Mac. https://www.tunesbro.com/data-recovery-for-mac.html Now you are given a chance to get back your data. Tunesbro Data Recovery for Mac (Data Recovery for Windows) is a powerful hard disk recovery software which can effectively retrieve various lost files such as MS Office files, photos, audios, emails etc. due to formatting, corruption or accidental erase.
If you're still seeing the Apple logo and nothing else has worked, there's a problem booting up your iPhone. DFU, or Device Firmware Update, Mode stops your iPhone from booting up all the way so that you can connect it to iTunes and restore the iPhone and start fresh. maybe DFU will solve "iPhone stuck in Apple logo"