ERROR_DELETE_PENDING - 303 (0x12F)
The file cannot be opened because it is in the process of being deleted.
Updated: Feb 21, 2026
Technical Meaning
The ERROR_DELETE_PENDING error code indicates that an attempt to open a file or directory has failed because the operation is being performed while the item is in the process of deletion. This error typically occurs during operations such as reading, writing, or accessing files and directories that are currently undergoing the delete process.
Error Details
This specific error is related to the Windows file system and is commonly encountered when dealing with file and directory operations. The error suggests that the operation was attempted on a file or directory that is being deleted by another process or scheduled for deletion, leading to its unavailability at the time of the operation.
Usage Context
The ERROR_DELETE_PENDING error can be observed in various scenarios where files or directories are being actively deleted. This includes situations such as:
- Attempting to open a file that is being deleted by another process.
- Performing read, write, or delete operations on a directory that contains files scheduled for deletion.
Developer Interpretation
Developers should be aware that this error does not indicate an issue with the operation itself but rather a timing problem. The operation was attempted at a moment when the file or directory was in the process of being deleted by another system component, such as the operating system's background processes or user-initiated delete operations.
Related Errors
These errors may occur in similar contexts where file and directory operations are attempted but fail due to different reasons, such as the file or path not existing or access being denied.
FAQ
Q: What does ERROR_DELETE_PENDING mean?
A: The error indicates that an operation was attempted on a file or directory that is currently in the process of being deleted by another system component.
Q: How can I handle this error in my application?
A: You should design your application to handle such errors gracefully. Retry the operation after a short delay, or inform the user about the temporary unavailability of the file or directory.
Summary
The ERROR_DELETE_PENDING (303) error code is specific to file and directory operations in the Windows file system. It indicates that an attempt was made to access a file or directory while it was being deleted, leading to its unavailability at the time of the operation. Developers should be prepared to handle this error by designing their applications to retry operations after a short delay or by informing users about temporary unavailability.