Error message when you try to delete an empty folder on a network share that is hosted on a Windows Server 2003-based server or on a Windows XP Professional x64 Edition-based server: "Cannot delete <DIRECTORY>"

Support for Windows XP has ended

Microsoft ended support for Windows XP on April 8, 2014. This change has affected your software updates and security options. Learn what this means for you and how to stay protected.

Support for Windows Server 2003 ended on July 14, 2015

Microsoft ended support for Windows Server 2003 on July 14, 2015. This change has affected your software updates and security options. Learn what this means for you and how to stay protected.

This article has been archived. It is offered "as is" and will no longer be updated.
Symptoms
You try to delete an empty folder on a network share that is hosted on a Windows Server 2003-based server or on a Windows XP Professional x64 Edition-based server. When you do this, you may receive the following error message:
Cannot delete <DIRECTORY>: It is being used by another person or program.
This problem occurs when hotfix 950298 is installed on the server.
Resolution

Hotfix information

A supported hotfix is now available from Microsoft. However, it is intended to correct only the problem that is described in this article. Apply it only to systems that are experiencing this specific problem. This hotfix may receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next software update that contains this hotfix.

To resolve this problem immediately, contact Microsoft Customer Support Services to obtain the hotfix. For a complete list of Microsoft Customer Support Services telephone numbers and information about support costs, visit the following Microsoft Web site:Note In special cases, charges that are ordinarily incurred for support calls may be canceled if a Microsoft Support Professional determines that a specific update will resolve your problem. The usual support costs will apply to additional support questions and issues that do not qualify for the specific update in question.

Prerequisites

To apply this hotfix, you must be running one of the following operating systems on the server:
  • Windows Server 2003 with Service Pack 1
  • Windows Server 2003 with Service Pack 2
  • Windows XP Professional x64 Edition
  • Windows XP Professional x64 Edition with Service Pack 2

Restart requirement

You must restart the server after you apply this hotfix.

Hotfix replacement information

This hotfix does not replace any other hotfixes.

File information

The English version of this hotfix has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time item in Control Panel.
Windows Server 2003 with Service Pack 1, x86-based versions
File nameFile versionFile sizeDateTimePlatform
Srv.sys5.2.3790.3179361,98422-Jul-200811:24x86
Windows Server 2003 with Service Pack 1, x64-based versions, and Windows XP Professional x64 Edition
File nameFile versionFile sizeDateTimePlatform
Srv.sys5.2.3790.3179674,81623-Jul-200808:11x64
Windows Server 2003 with Service Pack 1, Itanium-based versions
File nameFile versionFile sizeDateTimePlatform
Srv.sys5.2.3790.31791,110,52823-Jul-200808:13IA-64
Windows Server 2003 with Service Pack 2, x86-based versions
File nameFile versionFile sizeDateTimePlatform
Srv.sys5.2.3790.4339358,40022-Jul-200811:43x86
Windows Server 2003 with Service Pack 2, x64-based versions, and Windows XP Professional x64 Edition with Service Pack 2
File nameFile versionFile sizeDateTimePlatform
Srv.sys5.2.3790.4339648,19223-Jul-200809:15x64
Windows Server 2003 with Service Pack 2, Itanium-based versions
File nameFile versionFile sizeDateTimePlatform
Srv.sys5.2.3790.43391,111,55223-Jul-200809:12IA-64
Workaround
To work around this problem, restart the server, and then delete the empty folder.
Status
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.
More information
For more information about software update terminology, click the following article number to view the article in the Microsoft Knowledge Base:
824684 Description of the standard terminology that is used to describe Microsoft software updates
References
For more information about hotfix 950298, click the following article number to view the article in the Microsoft Knowledge Base:
950298 Error message on a Windows Server 2003-based file server: "Stop 0x00000050"
Properties

Article ID: 955157 - Last Review: 01/15/2015 17:59:27 - Revision: 3.0

  • Microsoft Windows Server 2003, Web Edition
  • Microsoft Windows Server 2003, Datacenter Edition (32-bit x86)
  • Microsoft Windows Server 2003, Datacenter Edition for Itanium-Based Systems
  • Microsoft Windows Server 2003, Datacenter x64 Edition
  • Microsoft Windows Server 2003, Enterprise x64 Edition
  • Microsoft Windows Server 2003, Enterprise Edition (32-bit x86)
  • Microsoft Windows Server 2003, Enterprise Edition for Itanium-based Systems
  • Microsoft Windows Server 2003, Standard x64 Edition
  • Microsoft Windows Server 2003, Standard Edition (32-bit x86)
  • Microsoft Windows XP Professional x64 Edition
  • kbnosurvey kbarchive kbexpertiseadvanced kbfix kbautohotfix kbsurveynew kbqfe KB955157
Feedback