1. Welcome to TechPowerUp Forums, Guest! Please check out our forum guidelines for info related to our community.

Help!! Can not delete folder

Discussion in 'General Software' started by Killer_Rubber_Ducky, Jul 26, 2010.

  1. Killer_Rubber_Ducky

    Killer_Rubber_Ducky

    Joined:
    Oct 20, 2009
    Messages:
    2,709 (1.48/day)
    Thanks Received:
    299
    I ran into this problem while reorganizing my data drive. I had a folder called Anime that was being shared @ location D:\Anime. I wanted to delete this folder because nothing was in it and no one could access it anyway. Problem was, when ever I tried to delete or change anything even open it, it told me I did not have rights to access it, I AM ADMIN. WTF? I can not delete, open, modify, or hide this folder. Help!!! Unlocker won't do anything either.

    [​IMG]

    [​IMG]

    [​IMG]
     
  2. Depth

    Joined:
    Aug 7, 2009
    Messages:
    590 (0.31/day)
    Thanks Received:
    132
    Open command prompt as administrator and use the ICACLS command to give you access, then delete it from the same window.

    Be careful with that command.
     
    Last edited: Jul 26, 2010
  3. CounterZeus

    CounterZeus

    Joined:
    Oct 24, 2009
    Messages:
    221 (0.12/day)
    Thanks Received:
    42
    Location:
    Belgium
    hum, I have the same issue with one of my folders
     
  4. theonedub

    theonedub habe fidem

    Joined:
    Apr 30, 2009
    Messages:
    7,163 (3.58/day)
    Thanks Received:
    3,712
    Right click, properties, security, advanced, owner-> make sure you are the owner in that screen, then try deleting it again?
     
    Crunching for Team TPU
  5. scaminatrix

    scaminatrix

    Joined:
    Mar 1, 2010
    Messages:
    3,579 (2.11/day)
    Thanks Received:
    794
    Location:
    By the Channel Tunnel, Kent, England
  6. Depth

    Joined:
    Aug 7, 2009
    Messages:
    590 (0.31/day)
    Thanks Received:
    132
    Code:
    ICACLS D:\anime /remove:d username /C
    
    ICACLS D:\anime /grant username:F /C
    
    erase D:\anime
    
    It's been years since I touched access lists but the above should work from either your own username or as administrator. If not, you can start in safe mode and modify the folder ownership.
     
  7. Killer_Rubber_Ducky

    Killer_Rubber_Ducky

    Joined:
    Oct 20, 2009
    Messages:
    2,709 (1.48/day)
    Thanks Received:
    299
    unfortunately, that did not work
    [​IMG]
     
  8. newtekie1

    newtekie1 Semi-Retired Folder

    Joined:
    Nov 22, 2005
    Messages:
    20,027 (6.15/day)
    Thanks Received:
    6,091
    Turn of UAC, if you haven't already.

    Make sure you are the owner of the folder, and that the permissions are set properly.

    If that doesn't work, try Killbox.

    If that doesn't work, the folder might be corrupt, meaning the hard drive might be going bad.
     
    Crunching for Team TPU 50 Million points folded for TPU
  9. Killer_Rubber_Ducky

    Killer_Rubber_Ducky

    Joined:
    Oct 20, 2009
    Messages:
    2,709 (1.48/day)
    Thanks Received:
    299
    Thanks,
    Killbox beta worked great. I set it to delete on reboot. I was then able to Manually delete the folder.
     
  10. slyfox2151

    slyfox2151

    Joined:
    Jan 14, 2009
    Messages:
    2,606 (1.24/day)
    Thanks Received:
    524
    Location:
    Brisbane, Australia
    use "take ownership"... if you ever run accross this problem again.


    once added to the registery all you need to do is right click the folder and hit take ownership... then u can delete it straight away.
     
  11. Killer_Rubber_Ducky

    Killer_Rubber_Ducky

    Joined:
    Oct 20, 2009
    Messages:
    2,709 (1.48/day)
    Thanks Received:
    299
    well, minor problem with that. When ever I look at the security section, it claims it can not display the owner.
     
  12. slyfox2151

    slyfox2151

    Joined:
    Jan 14, 2009
    Messages:
    2,606 (1.24/day)
    Thanks Received:
    524
    Location:
    Brisbane, Australia
    if you ran the take ownership command, wouldnt it delete the owner and set you as the new owner.
     
  13. burtram

    burtram

    Joined:
    Jul 20, 2007
    Messages:
    589 (0.22/day)
    Thanks Received:
    217
    I've had that happen a few times. usually restarting the computer works for me, but if it's real stubborn, going into safe mode and deleting it there works. Haven't had one that was more stubborn than that yet. really irritating when it does that.
     
  14. Laurijan

    Laurijan

    Joined:
    Feb 10, 2007
    Messages:
    2,251 (0.80/day)
    Thanks Received:
    352
    Location:
    Oulu, Finland
    Maybe a little prog called "move on boot" helps.
     
  15. Mussels

    Mussels Moderprator Staff Member

    Joined:
    Oct 6, 2004
    Messages:
    42,350 (11.55/day)
    Thanks Received:
    9,631
    i was coming here to suggest that program as well, its solved this kind of thing for me before.
     
  16. FordGT90Concept

    FordGT90Concept "I go fast!1!11!1!"

    Joined:
    Oct 13, 2008
    Messages:
    13,718 (6.24/day)
    Thanks Received:
    3,621
    Location:
    IA, USA
    Safe Mode is definitely my weapon of choice. If an application (including services and startup processes) opens a file stream in that folder, Windows can't delete it until the stream is closed. Because Safe Mode only loads required resources (of which most are in the %windir%) it is very unlikely for the application to be running that is tying up a directory outside of the Windows directory.

    If the directory is still tied up in Safe Mode and it is not a directory Windows would ever use, I have to believe it is associated with malware (the malware modified Windows core files to open a stream somewhere in that directory).
     
    Crunching for Team TPU
  17. Killer_Rubber_Ducky

    Killer_Rubber_Ducky

    Joined:
    Oct 20, 2009
    Messages:
    2,709 (1.48/day)
    Thanks Received:
    299
    Ah, but if you were to look at the screen shots you would see that it acts as though it doesn't exist. Also, It seems to say there is no owner or you can't see who owns it. You get Admin required etc when ever trying to modify yet when you click continue, it says access denied. i think Windows Media Center was re-adding it to the file system. i'm thinking of rebooting into Ubuntu Live CD and effing it over from there. (Yeah F U Microsoft!!!)

    At least in Linux things get done when you say so as admin. The OS doesn't second guess you.
     
  18. Laurijan

    Laurijan

    Joined:
    Feb 10, 2007
    Messages:
    2,251 (0.80/day)
    Thanks Received:
    352
    Location:
    Oulu, Finland
    I absolutely hate Windows user right system - its so complicated I have never learned it.
     
  19. streetfighter 2

    streetfighter 2 New Member

    Joined:
    Jul 26, 2010
    Messages:
    1,658 (1.07/day)
    Thanks Received:
    732
    Location:
    Philly
    I usually start by running chmod 777 then rmdir on the folder from cygwin (which is always very convenient to have if you're somewhat familiar with linux). Apart from that when you disable the "Use Sharing Wzzzrrrddd" you can change ownership (which has been mentioned a couple hundred times). If a file/folder doesn't have an owner that shouldn't effect your ability to take ownership.

    If that doesn't work Hiren's Boot CD or any live disc is the final fallback position.

    You can also do a search in the registry to see if any program is linking to the folder (or use Process Explorer), but that seems annoying compared to the more direct ways.
     

Currently Active Users Viewing This Thread: 1 (0 members and 1 guest)

Share This Page