ERROR_VIRUS_DELETED - 226 (0xE2)

This file contains a virus or potentially unwanted software and cannot be opened. Due to the nature of this virus or potentially unwanted software, the file has been removed from this location.

Updated: Feb 21, 2026

Technical Background

The Error_Virus_Deleted error code is a specific error indicating that a file or directory has been identified as containing a virus or potentially unwanted software and has consequently been removed by the system. This error typically occurs when an antivirus or security application detects malicious content within a file or directory.

Error Details

  • Error Name: Error_Virus_Deleted
  • Numeric Code: 226 (0xE2)
  • Short Description: Indicates a file or directory contains a virus or potentially unwanted software and has been removed.

This error is generated by the Windows operating system when an antivirus application identifies malicious content within a file or directory. The system then removes the identified item to prevent potential harm to the system.

Common Causes

  • Invalid Parameter Values: Incorrect parameters passed to security-related functions could lead to this error, although it is more likely that the detection of malware is the cause.
  • Incorrect Object Type: If a file or directory is incorrectly identified as containing malicious content, the system may mistakenly delete it.
  • Exceeding Limits: The system might encounter limitations in processing large numbers of files or directories, leading to this error if the antivirus software cannot process them all.

Real-World Context

This error typically occurs when an antivirus application is scanning a file or directory and identifies potentially harmful content. The system then removes the identified item to prevent potential harm to the system. This can happen during routine scans or when manually initiating a full system scan.

Is This Error Critical?

Yes, this error indicates that a security threat has been detected and mitigated by the system. It is critical for maintaining system integrity and preventing potential damage from malware.

How to Diagnose

  1. Review Operation Context: Check if the antivirus application was running during the time of the error.
  2. Validate Parameters: Ensure that all parameters passed to security-related functions are correct.
  3. Confirm Object Types: Verify that the file or directory types being scanned are correctly identified by the system.

How to Resolve

  1. Correct Parameter Usage: Ensure that all parameters used in security-related operations are valid and appropriate for the operation being performed.
  2. Adjust Operation Context: If a full system scan is causing issues, consider performing targeted scans on specific directories or files instead.
  3. Restore Data: If necessary, restore the deleted file from a backup if it was not critical to the system's operation.
  4. Retry Operation with Valid Inputs: Re-run the operation using valid inputs and ensure that all parameters are correctly set.

Developer Notes

Developers should be aware of the potential for this error when integrating security features into their applications. Proper validation of file types, parameters, and context can help prevent such errors from occurring.

Related Errors

  • Error_Virus_Scan_Failed (230, 0xE6)
  • Error_Virus_Not_Detected (219, 0x87)
  • Error_Virus_Quarantined (225, 0xE1)

FAQ

Q: What does the Error_Virus_Deleted error mean?

A: This error indicates that a file or directory contains a virus or potentially unwanted software and has been removed by the system.

Q: How can I prevent this error from occurring?

A: Regularly update your antivirus software, ensure proper parameter usage in security-related functions, and perform routine scans to detect and remove potential threats.

Q: Can this error be caused by a false positive?

A: Yes, it is possible for an antivirus application to mistakenly identify a file or directory as containing malicious content. Reviewing the scan results can help determine if a false positive has occurred.

Summary

The Error_Virus_Deleted error code indicates that a file or directory contains a virus or potentially unwanted software and has been removed by the system. This is a critical error for maintaining system integrity, but it can be resolved by ensuring proper parameter usage, adjusting operation context, and restoring data if necessary.