Here’s how to unjailbreak or remove Electra 1131 iOS 11.3.1 / 11.4 jailbreak without updating to iOS 11.4.1 on your iPhone or iPad.

So, you find yourself in a jailbroken state on iOS 11.3.1, but for one reason or another want to entirely remove that jailbreak. This guide is going to show you how to do exactly that with just a few easy-to-follow steps.

Before you jump in, make sure to take note of the requirements listed below so as to not experience any issues with the process. Of course remember, you’re going to be using a third-party script for this so always exercise caution and heed warnings. Also, this is meant only for more advanced users so if you don’t consider yourself one, or are confused about the whole process, we recommend waiting for more easier method, which might come some point in future. So if that’s all good, let’s get down to business, starting off with the some basic requirements and checklist.

This will not work if you have updated your device from iOS 10 using a FutureRestore method.

If you have used the jailbreak to modify system files or have installed packages like Filza, then this method is not relevant

If you have SSH’d into your device and installed a package that way, then, once again, this method will not work for you.

This one should go without saying but in order to remove the jailbreak, you will need to actually have the jailbreak and access to a functional Cydia installation

Access to a Mac or PC

Step 1: Launch Cydia on the device and head into the Search functionality. In the Search page, search for “subs” and tap into the Substitute package.

Step 2: Substitute should be installed on your device as it’s part and parcel of the Electra jailbreak and basically Electra’s replacement for Substrate. Uninstall this from your device, which, in turn, will remove all installed tweaks which have Substitute as a dependency and which could interfere with the unjailbreaking process.

Step 3: Exit Cydia, launch the Electra app and make sure that it states “Already Jailbroken.”

Step 4: Jump back into Cydia and simply search for OpenSSH. Make sure that this is installed – which it should be as part of the default set of installations. If it’s not, install it.

Step 5: Now, you will need to download some packages to your machine. First of all, you will need to download the wonderful Cyberduck package from cyberduck.io. Additionally, if you are running a Windows PC then you will also need to download and install PuTTY from putty.org.

Step 6: You are also going to need to download the “delectra” package from GitHub, which you can get from visiting the repository here.

Step 7: Unzip the delectra files and drag the unjailbreak.sh file to your desktop. Now, launch Cyberduck and select the Open Connection button. Make sure that SFTP (SSH File Transfer Protocol) is selected from the drop-down.

Step 8: You will now need the IP address of the jailbroken iOS device to add into the Server field. Add root as the username and alpine as the password. Select Connect and then Allow to make the connection.

Step 9: Drag the jailbreak.sh file into the Cyberduck window to copy it across to the root of the connected device.

Step 10: If you are using Windows, launch PuTTY. If you are a Mac user, then launch the native Terminal app. Type the following command: ssh root@[ip address].

Note: “[ip address]” will be replaced with the IP address of your iOS device.

Step 11: Hit Enter and then enter the relevant password (alpine) when requested.

Step 12: Type the following command to run the unjailbreak script: bash ./unjailbreak.sh

Step 13: You will be given some information about the script that you will need to take note of. If you want to continue with the process, press Enter on the warning.

Step 14: The Terminal/PuTTY app will give some information about the process before rebooting and closing the connection to the device due to the removal of OpenSSH. Once rebooted, the jailbreak will be removed.

That’s it! You now have Electra removed, and can re-jailbreak once again, should you feel like.