Microsoft small business knowledge base

Article ID: 298345 - Last Review: March 6, 2013 - Revision: 3.0

This article was previously published under Q298345

On This Page


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.

Applies to
  • Microsoft Windows XP Professional
  • Microsoft Windows XP Home Edition
kbresolve kbenv kbnofix kbprb KB298345
Additional support options
Ask The Microsoft Small Business Support Community
Contact Microsoft Small Business Support
Find Microsoft Small Business Support Certified Partner
Find a Microsoft Store For In-Person Small Business Support