[Last Call] Learn how to a build a cloud-first strategyRegister Now


Cannot delete ###  It is in use by another person or program

Posted on 2009-12-31
Medium Priority
Last Modified: 2013-12-05
I  have a user that is storing her Office 2003 data files on a Windows 2000 server (SP4) folder she created inside a network share.  When she attempts to delete certain, not all, excel files (not sure of other file types), she receives Cannot delete file *.*  - It is being used by another person or program. She has been having this issue for some time, couple of months at least.
She is using XP SP2 on her workstation (Dell Optiplex 745) and is the Owner, with Full Control of her folder and its subfolders and files.  The main Share folder users are Domain\Admins and Domain\Users with full rights and Domain\Admin as the owner.  We have McAfee OAS installed on all computers.
When I navigate to a file in question from my workstation or VNC into the server, I cannot delete the file, receiving pretty much the same error file in use or a sharing violation.  I have used unlock but the files in question do not show as being locked.  Thinking maybe the file had become corrupt, I tried to Open and Repair the file through Excel, no-go.  The server has also been rebooted on a couple of occasions to no avail.  I think I have been through about every thread posted here concerning the subject, have tried a couple of solutions but nothing so far seems to be the correct action. Any additional direction or guidance is greatly appreciated.
Question by:resasser
LVL 38

Expert Comment

ID: 26156198
Some things to try:
  • To rule out permissions issues, take ownership of a problem file and grant yourself Full Control.
  • In Computer Management on the server, does the file show up under System Tools\Shared Folders\Open Files?
  • Run Process Explorer on the server and see if any processes have the file in use.
  • If possible, run CHKDSK /F on the drive containing the file.  This will probably require a reboot.

Expert Comment

ID: 26156301
You can also try the software Hyena to see who or what has a file open - it can be downloaded and used free of charge (30 day trial, no hassle/annoyance for this kind of troubleshooting) from http://www.systemtools.com/cgi-bin/download.pl?Hyena  and a demonstration of how to use it is available from http://www.itworld.com/book_050811winserverhacks_49

Expert Comment

ID: 26160165
Delete an Undeletable or Locked File
Unlocker is a very useful freeware that will allow you to unlock any files that are currently in use by Windows. Youll know if this is happening if you are getting any of these messages when trying to delete a file:
"      Cannot delete file: Access is denied
"      There has been a sharing violation
"      The source or destination file may be in use
"      The file is in use by another program or user
"      Make sure the disk is not full or write-protected and that the file is not currently in use
Unlocker will make things right again for you.
You can download tool from http://www.filehippo.com/download_unlocker/

Chandar Singh

Author Comment

ID: 26173424
I gave myself full user rights (domain/admin) to a file in question and took ownership of the file but still cannot delete.  

Open Files in Computer Management does not show the file as being open.

Will have to wait for downtime to run chkdsk on the drive as it is a server

Unlocker shows "No Locking Handle found".  Opened file and rechecked with Unlocker and it did show me as having the file open but  after closing it Unlocker showed "No Locking Handle found" again.

Accepted Solution

resasser earned 0 total points
ID: 26328158
Further research pointed to McAfee Enterprise 8.0 patch 16 was the cause.  After upgrading to 8.7 was then able to go in and delete all of the problematic files

Featured Post


Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Some time ago I faced the need to use a uniform folder structure that spanned across numerous sites of an enterprise to be used as a common repository for the Software packages of the Configuration Manager 2007 infrastructure. Because the procedu…
Welcome to my series of short tips on migrations. Whilst based on Microsoft migrations the same principles can be applied to any type of migration. My first tip Migration Tip #1 – Source Server Health can be found here: http://www.experts-exchang…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question