How can I remove my jailbreak prior to having my device repaired via warranty?

I have an ipad that won't start, according to a technician the battery is defective. The problem is that it is on warranty with apple, but it has jailbreak. I try to restore with itunes in dfu mode, but gives me error 4005.
There any way to remove jailbreak to carry it to the warranty??
Re: jailbreak remove??

Connect it to iTunes and select to restore it. Make sure you have the latest version of iTunes installed on your computer. If you get an error, try again.
Re: jailbreak remove??

Thanks to answer.
I tried a lot of times but always give me error. Restore is the only way?
Yes restore is the only way. Update your iTunes if you haven't done that, download iOS 7.1.2 using iTunes and restore it.


Sent from my iPhone using Tapatalk
the itunes is updated. Is common that can't be restored by defective battery?
Yeah I think so. If the bat is flat out of juice and can't collect charges up to 2 or 5% I think the device won't turn on at all.


Sent from my iPhone using Tapatalk

Original thread: https://forums.imore.com/threads/how-can-i-remove-my-jailbreak-prior-to-having-my-device-repaired-via-warranty.297938/