Skip to main content

Delete or Remove undeletable file and folder in Windows 7 by taking ownership

Today, there was a strange encounter with a file inside a folder or to be precise say a .FLV file downloaded off Youtube refused to obey any normal file system command requested. I have Windows 7 Professional 32 bit , it's kind of new to me and there are lot of things yet to be discovered.

Once in a while, I organize my downloads and then I back it up. While doing so, this one .FLV file took forever to respond.  The problems I faced were:
  1. It wouldn't move to other folder or location at all, Windows Explorer just takes forever and keeps showing with 'discovering/calculating' message
  2. Tried to rename the file, and the explorer window didn't respond. When I fired further clicks, I saw 'Not responding' at the window's title bar. 
  3. Then I tried to delete it, and it wouldn't delete. Pretty adamant.
  4. I tried to check the properties of the file and my Windows 7 acted like nothing happened. I did that several times and saw no effect at all. It didn't show me any window or any message box. That was strange. 
  5. Now, I really needed to get this thing off my system. I did malware checks. I found out it's clean. I rebooted in safe mode(F8 key during bootup) and tried to delete it with no luck. I saw it has lock icon on it. After seeing, lock icon I thought some encryption is preventing me to do things.
  6. Back to normal mode, I tried to disable the Bitlocker encryption of Windows 7 but found out and remembered, encryption was already disabled. 
  7. I installed Unlocker for Windows 7, hoping that would definitely delete the culprit. But even my favorite tool in XP failed in Windows 7.
  8. I had this kind of problem in Windows XP when filename or folder name is awkwardly long and saved in last sub folder of  many folders hierarchy.( eg: c:\folder1\folder2\folder3\folder4\folder5\long file name) In those cases, I simply start to delete from last subfolder and it works. I checked if it's the same issue in Windows 7 and it was not.
  9. I tried to run that FLV file and out of shock it played. Hmmm... 
So, there was nothing wrong with the file. It's just something not letting me do file actions under Windows 7 environment. I searched microsoft and found they've some ownership settings running on file system for security. I didn't use Vista much but found out that  it is a known feature on Vista too. File ownership determines the permission level granted to certain users so that nobody could make unauthorized changes to the file / folder besides granted user. I was thinking Administrator could do anything. But I was wrong. Or may be bug where Administrator is restricted to perform system maintenance or may be lack of knowledge. I think, the FLV file must have different permission level from where it was generated first and it didn't just match with Windows 7's permission settings, so Windows 7 simple refused it's existence.

More searches, I found there was this little registry hack which will let you 'Take Ownership' of the file manually. I clicked, downloaded and run the registry hack. There was 'Take Ownership' shortcut menu added to my context menu. I right clicked on that FLV file, clicked 'Take Ownership' and voila. I could move the file , rename it or even delete it. The whole drama was because of this mismatched file permission settings.

Afterward, I tried to find if there is automatic Ownership of all files and folders under Administrators right in Windows 7 and I couldn't find a single solution for that. May be Windows 7 is not meant to be that way.

NOTE: This should work for all undeletable files and folders in Windows 7, can't delete file or folder in windows 7, can't remove file or folder in windows 7 , kind of things.


Thnx for da tutorial.

and below is my blog giving tips and tutorial on how to be dj Click the below link for exclusive dj remix nepali songs
Salman said…
You should try this tool it will surely help you
Boris said…
tried the registry thing, that didn't help either...

Popular posts from this blog

Prashant Tamang -A Nepalese in Indian Idol 3

CONGRATULATION !!!! PRASHANT FOR BEING INDIAN IDOL Here in US, we don't have Sony channel, may be there is but the region where i am, we don't have. Whatever ... am glad to hear that PRASHANT became an INDIAN IDOL. Update(Sept,12 2007): Prashant Tamang in Boudha Prashant Tamang is becoming sensation day by day as the final decisive day is approaching nearer and nearer. For his support, lots of people are convincing people to vote for him. People are relating his victory with nation's pride which i don't like. Besides, the communal attachment for him is growing day by day. It's only we mongolian face supporting him in Nepal. Like in Dharan and other different place of our country,people has put his banners, posters showing support for him. Yesterday, it was no moon day and i was lighting butterlamps in front of BoudhaNath stupa and suddenly i saw, there is huge banner of Prashant Tamang. Tamangs of Boudha has done this admiration for him. Normally, we see portrays

जेनेरेटरबाट गाउमै कम्प्युटर कक्षा

त्रिवेणी र्-पर्वत, फागुन २८ - "जहा इच्छा, त्यहा उपाय " । प्रविधि मोहमा होम्मिएका पर्वतको दर्ुगम गाउ“ त्रिवेणीका युवाले यही उखानलाई चरितार्थ गरेका छन् । बिजुलीे पुग्न नसकेको दर्ुगम गाउ“का यी युवाले जेनेरेटर चलाएर कम्प्युटर सिक्न सुरु गरेका छन् । बेहुलीबास गाविसका दीपक काफ्लेले त्रिवेणीमा खोलेको ओम इन्स्िटच्युटमा यहा“का विद्यार्थी र अभिभावक कम्प्युटरमा झुम्मिन्छन् । इन्स्िटच्युटमा दैनिक २० जनाभन्दा बढी कम्प्युटर सिक्न थालेका छन् । एक जनाबाट महिनाको एक हजार पा“च सयदेखि २ हजारसम्म लिने गरेको काफ्ले बताए । सरकारले वितरण गरेको विद्युत् लाइन पुग्न नसके पनि लाखांै खर्चेर उनले जेनेरेटर र कम्प्युटर खरिद गरे । गाउ“लेलाई सेवा दिने र व्यवसायसमेत गर्ने उद्देश्यले आफूले यस्तो काम थालेको काफ्लेले बताए । 'सहरमा गएर यस्तै काम सिकियो गाउ“लेलाई पनि सिकाउने रहर लाग्यो,' उनले भने । सदरमुकामदेखि यातायात र सूचनाका लागि समेत निकै पछाडि परेको गाउ“मा स्थानीय व्यक्तिले नया“ प्रविधि सिकाउने कक्षा खोलेपछि जान्ने र सिक्ने रहर भएकास“गै रमाइलोका लागि पनि धेरै जना आउने गरेका छन् । काफ्लेका अनुसार

Do you have a Blogger(blogspot) Blog and do you know Google is deleting blogger blogs??

As usual, I was checking backlink tool to find some of the friends link (who has linked backed to me before) if they still have my link backlinked to me or not. Well, some of them didn't link back to me. I checked their site and the message I got upon visiting their blogspot(blogger) blog was something like "this blog has been deleted." As I was visiting some of the other blogspot blog, I found few of them got deleted too. I thought, may be they got over blogging. Recently more and more blogspot(blogger) blogs are unavailable or being deleted. Now, these things forced me to think why those blogs are being deleted. I usually check official google blog for any kind of stuff they are upto. Their blog was shut down too(it's some days before), they are online now though. But, it's quite eerie because this very blog of mine is hosted on blogger's server too. I don't know what happened to their official blog but it's confirmed news they are deleting blogs. M