Error message when you try to delete a file in Windows XP: "Access is denied"

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.

This article was previously published under Q298345
This article has been archived. It is offered "as is" and will no longer be updated.
When you try to delete a file, you may receive the following error message:
Cannot delete filename: Access is denied.

Make sure the disk is not full or write-protected and that the file is not currently in use.
However, the disk is neither full nor write-protected, and no one else is using the file.
This behavior can occur if you do not have the permissions that are required to delete the file under the NTFS file system.
To resolve this behavior, select from the following methods.

Method 1: Make sure that you are using an administrator account to perform this task

Method 2: Ask the administrator to grant the necessary permissions

For more information, click the following article number to view the article in the Microsoft Knowledge Base:
308419 How to set, view, change, or remove special permissions for files and folders in Windows XP
Note If the problem persists, you might want to ask someone for help or contact support. For information about how to contact support, visit the following Microsoft Web site:
For more information about system attributes, click the following article numbers to view the articles in the Microsoft Knowledge Base:
329183 You may receive an error message when you try to rename a folder on an NTFS partition in Windows XP
815929 "Access denied" error message when you try to copy a file to a Web folder that is configured with integrated authentication
If the articles listed here do not help you resolve the problem or if you experience symptoms that differ from those that are described in this article, search the Microsoft Knowledge Base for more information. To search the Microsoft Knowledge Base, visit the following Microsoft Web site: Then, type the text of the error message that you receive, or type a description of the problem in the Search Support (KB) field.
access denied k

Article ID: 298345 - Last Review: 12/06/2015 02:35:47 - Revision: 3.0

Microsoft Windows XP Professional, Microsoft Windows XP Home Edition

  • kbnosurvey kbarchive kbresolve kbenv kbnofix kbprb KB298345