BleepingComputer.com: Cannot Delete File: Access Is Denied

Jump to content


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.

Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Cannot Delete File: Access Is Denied

#1 User is offline   scratcher 

  • Member
  • PipPip
  • Find Topics
  • Group: Members
  • Posts: 107
  • Joined: 18-October 06
  • Gender:Male

Posted 07 November 2006 - 08:39 PM

Hi All:

How often have we seen Windows messages such as the following:

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 that the file is not currently in use.


It seems that everyone, from time to time, runs into a pesky file or folder that just refuses to be renamed, moved, deleted, or wiped out.

Here are a few programs that will empower you to do what you want to do:

UNLOCKER http://ccollomb.free.fr/unlocker/

This is the most useful for general purposes. Just right-click the folder or file and select Unlocker to rename, move, or delete.

It works almost every time, but for really tough cases you may need to fire up some sort of 'Move on Boot' program. These all seem to work the same way. You mark the file or folder for deletion and after a reboot - unless you are very unlucky - it will be gone.

Three such programs I know of are:

ADVANCED FILE REMOVER http://www.excessive-software.eu.tt/

DELETE DOCTOR http://www.theabsolute.net/sware/

GiPo MOVE ON BOOT http://www.gibinsoft.net/gipoutils/fileutil/index.htm

As for a program that will smash to bits and wipe out forever any file that you don't feel happy about having around, the best I've found is ERASER, a program that will overwrite any pesky file either 1, 3, 7 or 35 times and beyond all possibility of recovery: http://www.tolvanen.com/eraser/

Revenge is sweet, all of these programs are free, so have fun!

Cheers,

scratcher.

This post has been edited by scratcher: 07 November 2006 - 08:52 PM

* HP Pavilion dv7 * 2.20 gigahertz AMD Phenom II N850 Triple-Core * 4.0 GB RAM * Windows 7 Home Premium (x64 bytes) * Firefox 3.6.13 * Thunderbird 3.1.7 * avast! Free Anti-Virus 5.1.889 * Comodo Firewall * Super AntiSpyware 4.48.1000 * Erunt * Malwarebytes' Anti-Malware 1.50.1 Pro *

#2 User is offline   dc3 

  • Recalcitrant
  • PipPipPipPipPipPip
  • Find Topics
  • Group: Members
  • Posts: 9,476
  • Joined: 04-March 05
  • Gender:Not Telling

Posted 08 November 2006 - 10:29 AM

Unless it's a virus I've never had a problem deleting files of that nature in safe mode. Files that contain viruses or other nasties can usually be deleted using the proper software in safe mode.

#3 User is offline   scratcher 

  • Member
  • PipPip
  • Find Topics
  • Group: Members
  • Posts: 107
  • Joined: 18-October 06
  • Gender:Male

Posted 08 November 2006 - 10:37 AM

View Postdc3, on Nov 8 2006, 10:29 AM, said:

Unless it's a virus I've never had a problem deleting files of that nature in safe mode. Files that contain viruses or other nasties can usually be deleted using the proper software in safe mode.


True, but I don't see the point of shutting down and starting up in safe mode simply to delete a file or an empty directory or change a directory or file name.

Maybe we are talking about different things. You will get that "cannot delete file" message if you have recently opened the file, presumably because it's still in memory.
* HP Pavilion dv7 * 2.20 gigahertz AMD Phenom II N850 Triple-Core * 4.0 GB RAM * Windows 7 Home Premium (x64 bytes) * Firefox 3.6.13 * Thunderbird 3.1.7 * avast! Free Anti-Virus 5.1.889 * Comodo Firewall * Super AntiSpyware 4.48.1000 * Erunt * Malwarebytes' Anti-Malware 1.50.1 Pro *

#4 User is offline   usasma 

  • Still visually handicapped, new avatar (a camel) :0)
  • PipPipPipPipPipPip
  • Find Topics
  • Group: Members
  • Posts: 16,689
  • Joined: 02-October 05
  • Gender:Male
  • Location:Southeastern CT, USA

Posted 08 November 2006 - 04:32 PM

I just go in, take ownership, give myself full control and then delete the sucker. Works for most files that I've encountered.

http://www.bleepingcomputer.com/forums/topic42756.html
- John
**If you need a more detailed explanation, please ask for it. I have the Knack. **

#5 User is offline   scratcher 

  • Member
  • PipPip
  • Find Topics
  • Group: Members
  • Posts: 107
  • Joined: 18-October 06
  • Gender:Male

Posted 01 December 2006 - 05:27 PM

That's what Unlocker does.
* HP Pavilion dv7 * 2.20 gigahertz AMD Phenom II N850 Triple-Core * 4.0 GB RAM * Windows 7 Home Premium (x64 bytes) * Firefox 3.6.13 * Thunderbird 3.1.7 * avast! Free Anti-Virus 5.1.889 * Comodo Firewall * Super AntiSpyware 4.48.1000 * Erunt * Malwarebytes' Anti-Malware 1.50.1 Pro *

#6 User is offline   silmaril8n 

  • Member
  • PipPip
  • Find Topics
  • Group: Members
  • Posts: 60
  • Joined: 26-November 06

Posted 01 December 2006 - 06:50 PM

If I can do something without an extra piece of software then I will generally stick with that first. Not being able to delete a file usually smells fishy to me, in which case I'd probably go straight to safe-mode to scan my system anyways.
Any sufficiently advanced technology is indistinguishable from magic.
~ Arthur C. Clarke

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users