In this guide
First: don’t click “Delete all” yet
Wordfence makes cleanup look like a one-click job. Sometimes it is. But that button deletes files based on patterns, and it doesn’t know which files your site actually needs. Wordfence’s own documentation warns that one-click removal can delete custom files along with the malware.
So before you touch anything:
- Make a full backup of the site as it is now: files and database. Yes, the infected version. If a deletion breaks something, you can get the file back.
- Write down what Wordfence found. Take screenshots of the scan results, or copy the list. The file names and dates help later when you work out how the attacker got in.
How to read the Wordfence scan results
Wordfence groups its findings by type. These are the ones you’ll see most during an infection, and what each one usually means:
| What Wordfence says | What it usually means | What to do |
|---|---|---|
| File appears to be malicious or unsafe | The file matches a known malware signature | Look at it. If it’s not a file you created, it’s almost certainly malware |
| Modified WordPress core file | A core file differs from the official version | Use Repair, which restores the original from WordPress.org |
| Modified plugin or theme file | A plugin or theme file differs from the WordPress.org copy | Use Repair, or reinstall the plugin. Premium plugins can’t be compared, so reinstall them from the vendor |
| Unknown file in WordPress core directory | An extra file in wp-admin, wp-includes or the site root |
Usually malware. Check it, then Delete |
| Malicious URL in a post or comment | Spam or a malicious link inside your content | Edit or delete the post or comment |
| Plugin has been abandoned / has a known vulnerability | Possibly how the attacker got in | Update it, replace it, or remove it |
Cleaning up with Wordfence, step by step
1. Update Wordfence and run a high-sensitivity scan. In Wordfence → Scan → Scan Options and Scheduling, choose High Sensitivity. It’s slower and gives more false alarms, but it’s the right setting when you know something is wrong. Also enable scanning of files outside your WordPress installation if your host allows it.
2. Repair core, plugin and theme files first. For anything marked as modified, use Repair. It replaces the file with the clean original, which is safer than deleting.
3. Review unknown files before deleting them. Click each file to see its contents. Malware usually looks like gibberish: long encoded strings, eval(, base64_decode(, or random variable names. If it’s clearly not yours, delete it. If you’re not sure, download a copy before you delete it.
4. Check your users. Go to Users and look for administrator accounts you don’t recognize. Delete them and reassign their content to a real user.
5. Scan again. Keep going until the scan comes back clean. If new files keep appearing between scans, stop and read the “When Wordfence can’t remove it” section below.
6. Check the places Wordfence doesn’t fully cover:
- The database. Theme settings, widgets and plugin settings can hold scripts that Wordfence doesn’t flag. My database malware guide has safe queries to check them.
- Hosting cron jobs. Look in your hosting control panel for scheduled jobs you didn’t create.
- Other sites in the same hosting account. If one of them is infected, it can reinfect yours.
7. Lock the doors. Change your WordPress, hosting, SFTP and database passwords, turn on Wordfence’s two-factor login for administrators, and update everything.
8. Find out how they got in. Wordfence’s scan results often point to it: an outdated or abandoned plugin, a vulnerable theme, or a weak admin password. If you skip this step, you’ll probably be cleaning again soon.
Free vs Premium: the 30-day delay
Free and Premium Wordfence use the same scanner. The difference is timing. Free users get new malware signatures and firewall rules 30 days after Premium users do. Wordfence adds new signatures every month, so a brand-new piece of malware may not be detected by the free version for a few weeks.
In practice, that means a clean scan on the free version is a little less reassuring than a clean scan on Premium, especially if your site has symptoms. At the time of writing (November 2026), Premium costs $149 a year per site, rising to $199 on December 3, 2026.
When Wordfence can’t remove the malware
Wordfence is a good tool, but these situations usually need a closer, manual look:
- The scan is clean, but the symptoms continue. Redirects, spam in Google, or browser warnings that won’t go away. The malware is probably in the database, in
.htaccess, or only activates for certain visitors. - Deleted files come back within hours or days. Something on the server is recreating them.
- Wordfence gets switched off or deleted. Some malware disables security plugins.
- You can’t log in to WordPress or the site is suspended by your host, so you can’t run the plugin at all.
- The attacker got back in after you cleaned. The entry point is still open.
A pattern I see a lot: Wordfence finds five infected files. The owner deletes them, the scan comes back clean, and everyone relaxes. Three days later, the same five files are back. The culprit is a small backdoor hidden inside a legitimate-looking plugin folder. It doesn’t match any signature, so Wordfence doesn’t flag it, and it quietly downloads the malware again. Finding it means comparing the plugin’s files with a clean copy line by line, which is exactly the kind of work a scanner can’t do for you.
Your options if you need help
- Follow a full manual cleanup. My step-by-step WordPress malware removal guide covers what to check beyond the Wordfence scan.
- Wordfence Care or Response. Wordfence’s own team cleans the site, and the plans include monitoring and security audits. They’re yearly subscriptions. At the time of writing, Care costs $590 a year per site and Response (24/7, 1-hour response) costs $1,250. Both are rising on December 3, 2026, to $890 and $1,900.
- A one-time cleanup by an independent specialist. If you don’t need a subscription, I’ll find and remove the malware, close the entry point, and send you a report for $95 per site, with a 1-month guarantee. Wordfence stays installed and keeps protecting the site afterwards.
After the cleanup: keep Wordfence working for you
- Make sure the firewall is on. If Wordfence offers to optimize it (“Extended Protection”), do it, so it loads before WordPress.
- Turn on two-factor authentication for every administrator.
- Keep email alerts on for new issues, admin logins, and plugin vulnerabilities.
- Let the scheduled scans run, and actually read the alerts.
This guide is independent and not affiliated with Wordfence or Defiant Inc. Prices and features are based on Wordfence’s public information as of November 2026 and may change.