Skip to main content

How to remove viruses and malware from your iPhone or iPad

While Apple’s highly contained ecosystem has a reputation for malware resistance, that doesn’t mean it’s completely immune. Devices like iPhones and iPads can still experience viruses or hacking attempts, especially if a user downloads a file with malware or selects a hostile link.

Difficulty

Easy

Duration

15 minutes

What You Need

  • iPhone or iPad

If you think that some kind of malware may have been downloaded to your iOS or iPadOS device, it’s a good idea to take immediate action. Follow our steps to clear your iPhone or iPad of troublesome viruses.

Download updates and restart

Updates can patch vulnerabilities and help deal with the latest malware attacking Apple platforms, so you should always start with this step. Even if you have automatic updates turned on, there’s still a chance they aren’t download because your Apple device may need a specific connection or timeframe to do it. Here’s how to make sure updates are applied.

Step 1: Head to the Settings app. Here, select the General section from the menu.

Choose Software Update in General.
Image used with permission by copyright holder

Step 2: Select Software Update.

Select Download and Install on Apple Device.
Image used with permission by copyright holder

Step 3: Download and Install the latest update. This can take some time, but eventually your device will restart.

Step 4: If there are no updates, perform a manual reboot as an alternative.

Clear your browsing history

Deleting your browser history can clear up performance issues and ensure that viruses don’t return. Here’s how to do it on Safari — it’s similar on other browsers as well.

Step 1: Open Settings once more and scroll down to your apps to select Safari.

Clear Safari History.
Image used with permission by copyright holder

Step 2: Scroll down in Safari to find the option to Clear History and Website Data. Select it and wait for Safari to complete the process.

Choose to remove the app.
Image used with permission by copyright holder

Remove unknown apps

Your next important step is to go through all the apps in your phone and remove those that you don’t need, or that you don’t recognize. Some malware will automatically upload unwanted apps, or new, untrustworthy apps could be the source of viruses and should be removed.

Removing apps is very easy on iPhones or iPads. Simply give the app in question a long press, and then select Remove and confirm. Do this with all suspicious apps and any recently downloaded apps you don’t need.

Restore to a previous version using an iCloud backup

If you’ve tried everything and are still experiencing suspicious signs like unwanted downloads, unexplained account charges, lots of crashing, etc., then there’s another step you should take. You can restore your Apple device to a previous version by using your iCloud backup, which is typically enabled during setup. This is especially important if you’ve confirmed that there’s malware on your device, because it’s one of the only ways to really be sure you’ve removed it.

Step 1: Head back to Settings, and select General to proceed. Scroll down until you find Transfer or Reset iPhone/iPad and select it.

Choose to Transfer or Reset iPad or iPhone.
Image used with permission by copyright holder

Step 2: Choose Erase All Content and Settings. Follow the instructions, but try to avoid creating a brand new iCloud Backup. The goal is to go to a backup from before any malware was downloaded, so choose Erase Now at this screen.

Select Erase All Content and Settings.
Image used with permission by copyright holder

Step 3: When your iPhone/iPad is finished erasing, it will prompt you to set up again and give you an option to Restore from iCloud Backup. Choose this, and your device will restore to an earlier version. It’s a good idea to plug it in and give it time for this process.

Step 4: If you don’t have an iCloud Backup, this process will restore your device to factory settings and delete all your data. Only do this if you’ve tried everything else, and it’s clear a virus is still crashing your system.

If you want to make it less likely that your Apple device faces trouble in the future, take a look at our guide on the best antivirus apps you can get for your iPhone.

Editors' Recommendations

Tyler Lacoma
If it can be streamed, voice-activated, made better with an app, or beaten by mashing buttons, Tyler's into it. When he's not…
Have an iPhone, iPad, or Apple Watch? You need to update it right now
iPhone 14 Pro Max against a red background.

If you own an Apple product — be in the iPhone, iPad, Apple Watch, or a Mac — you should update it immediately. Why? Apple has begun rolling out updates to all of its devices with fixes for a serious security vulnerability.

The security vulnerability is known as CVE-2023-32434, and it has to do with the kernel privileges of Apple devices. Per Apple's website, the vulnerability allows third-party apps to "execute arbitrary code." In other words, if a bad actor knows how to exploit this vulnerability, they could potentially gain access to your Apple device and wreck havoc.

Read more
Apple may soon eliminate the notch from your Mac and iPhone
An Apple MacBook laptop with the macOS Ventura background wallpaper and the notch seen at the top of the display.

So many Apple devices have the divisive notch cutout these days that the feature has almost become its own brand, yet it continues to stir disapproving glances and attempts to hide it wherever it's seen. Apple could now be on the brink of eliminating it for good.

That’s because the company recently filed a patent in Europe outlining how future Apple devices, from Macs to iPhones, could do away with the notch once and for all, giving you a borderless experience that’s unbroken around the screen. It’s a grand idea, and Apple thinks it knows how to make it work.

Read more
Apple will now let you repair more Macs and iPhones yourself
A person repairing a MacBook using Apple's self-service repair kit.

Apple has been running a self-service repair program that lets you fix up your devices yourself since April 2022, but it’s always been a little bit hobbled. Now, though, Apple has expanded the program to include some of the latest devices available in what could be a boost to the right-to-repair movement.

Starting today, the program will include the M2 13-inch MacBook Air and the M2 13-inch MacBook Pro, as well as the entire iPhone 14 lineup. That means if you want to repair one of these products, Apple will provide you with official parts, tools and instructions to help you do it. Previously, you couldn’t do this yourself with Apple-approved parts, despite the devices being available for many months.

Read more