What does NTSTATUS 0xC0000123 (STATUS_FILE_DELETED) mean?

 
Previous Next
STATUS_INVALID_COMPUTER_NAME STATUS_SPECIAL_ACCOUNT

STATUS_FILE_DELETED

The file was deleted before the pending request completed

Windows can mark a file for deletion while handles or asynchronous requests still exist. Once the final close completes deletion, a late request associated with the old file object cannot be treated as ordinary I/O even if the caller retained an internal reference.

This commonly indicates a race between cleanup, close, cancellation, and completion. A new file created with the same name is a different object and must not receive the old request.

What to inspect

  • Trace delete disposition, cleanup, close, cancellation, and I/O completion ordering.
  • Use file-object or file-ID identity rather than pathname equality.
  • Drain or cancel pending work before allowing the lifetime owner to complete final close.

References


Looking for a different code? Search another status or error code.