Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

You receive a "Cannot delete <file name>" error message when you try to delete a file in the Open dialog box or in the Save As dialog box in Office


View products that this article applies to.

This article was previously published under Q298017
For a Microsoft Office 2000 version of this article, see 224124 (http://support.microsoft.com/kb/224124/ ) .
For a Microsoft Office 2000 version of this article, see 224124 (http://support.microsoft.com/kb/224124/ ) .

↑ Back to the top


Symptoms

When you try to delete a file in the Open dialog box or in the Save As dialog box in one of the Microsoft Office programs listed in the "Applies to" section, you receive the following error message.

Microsoft Windows 98

Cannot delete 'file name'." Access is denied.

Make sure the disk is not full or write-protected and that the file is not currently in use.

Microsoft Windows NT and Microsoft Windows 2000

Cannot delete 'file name'. There has been a sharing violation.

The source or destination file may be in use.

Microsoft Windows Millennium Edition (Me)

Cannot delete file name. Access is denied. The source file may be in use.

Microsoft Windows XP

Cannot delete file name. This file is in use by the following program: Microsoft Excel. You must close the file before proceeding.

↑ Back to the top


Cause

This error message may occur if the following conditions are true:
  • The file is open.
  • You do not have delete permissions.
For the resolution that applies to your situation, see the "Resolution" section.

↑ Back to the top


Resolution

The file is open

If another user has the file open, or if you have the file open in another session of Excel, PowerPoint, or Word on the same computer, close the file before you try to delete it. When one of these programs opens a file, the file is locked and can only be opened again as read-only. The file cannot be deleted while it is locked.

You do not have delete permissions

If you open a file that is stored on another computer, verify that you have sufficient permissions to the folder or file. To delete a file, you must have either Full permissions or the following base permissions for the file or folder on the computer that is hosting the file:
   Operating      Windows NT     Windows NT    Windows 98
   system         Windows 2000   Windows 2000  Windows Me 
                  Windows XP
                  (NTFS)         (FAT)         (FAT)          
   --------       ------------   ------------  ----------   
   File:          RWXD           N/A           N/A      
   
   Folder:        RWXD           Change        DF             
   
      R = Read
      W = Write 
      X = Execute
      D = Delete
      F = List Files
      N/A = Not Available
				
Note When you use other network operating systems, such as Novell Netware, the requirements are similar to Microsoft Windows NT and Windows 2000 (NTFS file system) requirements.

↑ Back to the top


Keywords: kbsecurity, kbpermissions, kberrmsg, kbprb, kbui, KB298017

↑ Back to the top

Article Info
Article ID : 298017
Revision : 5
Created on : 1/30/2007
Published on : 1/30/2007
Exists online : False
Views : 398