How to Fix “This file contained a virus and was deleted windows 10”

Is your Windows 10 showing “This file contained a virus and was deleted” error? Follow our easy-to-follow guide to fix the error and keep your system safe from viruses.

A common issue many Windows 10 users face is receiving a notification that a file has been deleted due to containing a virus. This can be incredibly frustrating, especially if you’re confident that the file in question is safe. In this article, we’ll explore the role McAfee antivirus software plays in this error and provide step-by-step instructions on how to resolve the issue. We’ll also discuss alternative solutions and offer some prevention tips to keep your computer secure.

Understanding the Error

Common Causes

There are a few reasons why you might encounter this error. It could be that your antivirus software, such as McAfee, has detected a legitimate threat in the file. Alternatively, it could be a false positive, where the antivirus mistakenly identifies a safe file as malicious.


The primary symptom of this error is the deletion or quarantine of a file, accompanied by a notification stating that the file contained a virus. In some cases, you might also experience decreased system performance or frequent alerts from your antivirus software.

McAfee’s Role in the Error

McAfee is a popular antivirus software that aims to protect your computer from malicious files and viruses. However, it can sometimes be overly cautious and flag safe files as dangerous. In these instances, the software may automatically delete or quarantine the file to protect your system.

Fixing the Error with McAfee

Updating McAfee

First and foremost, ensure that your McAfee antivirus software is up-to-date. This can help reduce the likelihood of false positives and improve the software’s overall performance.

Whitelisting Files

If you’re certain that the file in question is safe, you can add it to McAfee’s whitelist. This will prevent the antivirus from flagging it as malicious in the future.

Scanning for False Positives

If you suspect a false positive, you can submit the file to McAfee for analysis. They may be able to determine whether the file is genuinely malicious or simply misidentified.

Restoring Quarantined Files

If McAfee has quarantined a file you need, you can restore it by accessing the quarantine folder and selecting the appropriate file. Be cautious, however, as restoring a genuinely malicious file can compromise your system.

Alternative Solutions

Windows Defender

If you continue to experience issues with McAfee, you might consider switching to Windows Defender, the built-in antivirus software for Windows 10. It offers robust protection and may be less prone to false positives.

Third-Party Antivirus Programs

There are numerous third-party antivirus programs available that may better suit your needs. Research and compare features to find the best option for you.

System Restore

In some cases, performing a system restore can help resolve the issue. This will revert your system to a previous state, potentially undoing any changes that led to the error. Keep in mind, however, that a system restore may also remove any files or programs added since the selected restore point.

Safe Mode

Booting your computer in Safe Mode can help you identify and resolve issues related to the error. This mode loads only essential system files and drivers, allowing you to troubleshoot and fix problems without interference from nonessential software.

Prevention Tips

Regular Updates

Keeping your operating system and antivirus software up-to-date is crucial for maintaining optimal security. Regular updates help protect against new threats and reduce the chances of encountering errors.

Safe Browsing Habits

Practice safe browsing habits to minimize the risk of downloading malicious files. Avoid clicking on suspicious links, downloading attachments from unknown sources, and visiting unsecured websites.

Backing Up Files

Regularly backing up your files ensures that you have a secure copy in case of accidental deletion or corruption. This can save you time and effort when recovering from an error.

Using a Firewall

A firewall is an essential security measure that helps protect your computer from unauthorized access and malicious activity. Ensure that your firewall is enabled and properly configured for optimal security.

Resolving the “This file contained a virus and was deleted” error in Windows 10 with McAfee involves a combination of steps, including updating your antivirus software, whitelisting files, and restoring quarantined files. Alternative solutions, such as switching to Windows Defender or using a third-party antivirus program, can also help. By practicing prevention tips like regular updates, safe browsing habits, and backing up files, you can keep your computer secure and minimize the likelihood of encountering this error in the future.

Leave a Reply

Your email address will not be published. Required fields are marked *