Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Unable to delete a file in Win 7

10 Apr 2010   #1
phacer

Windows 7
 
 
Unable to delete a file in Win 7

Hello,

I've seen it's a few other threads about how to delete un-deletable files but it doesn't seem to be the same problem as I have.

About a week ago I downloaded a patch for a game. I was never able to open this patch because it says I don't have permission. And now I've realized I can't delete it either. I find this a little annoying when I prefer to be in control over my files and not something else. So I thought maybe you pro's here could help me?

I have attached three screen shots of what happens when I try. First one is just normal delete in explorer, second one shows that there is no owner of the file. And the third is some tries in cmd.

Hope you guys have some suggestions.

Cheers
André




Attached Thumbnails
-2.jpg   -3.jpg  
Attached Images
 
My System SpecsSystem Spec
.
10 Apr 2010   #2
not so gray matter

W7 Ult. x64 | OS X
 
 

Welcome to SevenForums, please fill out your System Specs via UserCP...

Take ownership of the file then delete:

How to take ownership of a file or a folder in Windows XP
My System SpecsSystem Spec
10 Apr 2010   #3
phacer

Windows 7
 
 
File problem

Quote:
Take ownership of the file then delete:

How to take ownership of a file or a folder in Windows XP
First of all I have win 7.
Second in the security tab it says Unable to set new owner for the file when I try, Access denied!
My System SpecsSystem Spec
.

10 Apr 2010   #4
Lomai

Win7 HP (x64)/Win7 Ultimate (x64)
 
 

Try Unlocker

Regards
My System SpecsSystem Spec
10 Apr 2010   #5
PinguII

Windows 7
 
 

Hi guys,
this is my first post here and i want to say: "hello" to everybody outta there.

So I have similar problem:
I want to install steam. While updating there is an error: "deleted steam.exe but the file is still there". I tried to go to the folder where it is located and delete it on my own. Another error: "Access denied" (Logged on as admin). Tried to take owership but the problem is still there. Next try was to look which process is locking the file. LockHunter says that the system process is locking it and i also cant unlock it. And after bout 1min the file is deleted.
Same problem appears with visual studio 2010. Trying to debugg one app then stop debugging in the middle of the programm, try to recompile file but linker says: "cant open file for writting".

Hope you can help me
Blessed Love Pingu

PS: also tried to uninstall avira cuz steam.com says some anti virus programm cuz problems but also no help
My System SpecsSystem Spec
10 Apr 2010   #6
phacer

Windows 7
 
 

This is interesting! Not even with two of the unlockers can I first open and select the file to the program. It says the same thing that access is denied.

Any suggestions?
My System SpecsSystem Spec
10 Apr 2010   #7
karlsnooks

MS Windows 7 Ultimate SP1 64-bit
 
 

Phacer,
I ran across this problem once. The problem is that I can't remember how I solved it.

Try this:
WIN key | type cmd.exe | rt-click on cmd.exe in the program list shown | select Run as administrator

Now that you are at the command prompt navigate to where the file is located.
First try DIR to see if file is listed.
If not try ATTRIB
You will probably find that the System, Hide, and Read-only attributes must be cleared.

After clearing the attributes, can you delete the file?
If not,
Then run PowerShell as administrator.

Procedure for running PowerShell as administrator is same as that for cmd.exe

Once in powershell, navigate to the file.
now try following command: DEL nameoftheproblemfile -FORCE
My System SpecsSystem Spec
10 Apr 2010   #8
phacer

Windows 7
 
 

Nice, I never knew about Powershell, this is good to know! Thanks. =)

How ever the problem remains the same. Here is a screen shot of what happened in Powershell when I tried!


Attached Thumbnails
-1.jpg  
My System SpecsSystem Spec
10 Apr 2010   #9
Lomai

Win7 HP (x64)/Win7 Ultimate (x64)
 
 

Hi phacer
Have you tried taking ownership of the file via your admin credentials and then deleting it?
Would be good if you log into your admin account and then taking ownership via the properties tab.

Hope this helps
My System SpecsSystem Spec
10 Apr 2010   #10
karlsnooks

MS Windows 7 Ultimate SP1 64-bit
 
 

Quote   Quote: Originally Posted by phacer View Post
Nice, I never knew about Powershell, this is good to know! Thanks. =)

How ever the problem remains the same. Here is a screen shot of what happened in Powershell when I tried!
Ok. Now are you logging on as administrator?

Create yourself an administrator account if you need one.

Log on with that administrator account.

I'm looking for my notes on manually taking ownership, as opposed to to using a .reg file.

Take Ownership of file - Vista Forums

Taking Ownership of Files and Folders
As an administrator you can take ownership of a file or folder as follows:
1. In Windows Explorer, rt-click on "properties" for the file or folder.
2. Security tab | Advanced
3. Owner tab| click Edit
4. In the Change Owner To list, select the new owner. To take ownership of all subfolders and files within the folder, select Replace Owner On Subcontainers And Objects option.
5. OK | OK

Assigning Ownership
As administrator or the current owner, you can assign ownership to another user or group as follows:
1. In Windows Explorer, rt-click on "Properties" for the file or folder.
2. Security tab | Advanced
3. Owner tab | Edit
4. Click Other Users Or Groups
5. Type the name of a user or a group | click Check Names | Choose the name you want if its not already filled in | OK
6. From the Change Owner list, select the new owner. For a folder, select Replace Owner On Subcontainers and Objects to assign ownership of all subfolders and files within the folder.
7. Ok | OK


What you want to do is assign yourself as the news owner.
My System SpecsSystem Spec
Reply

 Unable to delete a file in Win 7




Thread Tools




Similar help and support threads
Thread Forum
Unable to delete a file
After advice have carried out full clean install of W7 64 bit Profiles left in default location on C:\ The old profile was on E:\ I am unable to delete that folder .... went through it a subfolder at a time deleted all except one tmp file This is blocking me from deleting the folder...
Installation & Setup
Unable to delete file on my desktop
I recently decided to install cabal on my laptop again. I used internet download manager to install it. However, when I run the installer, explorer.exe becomes unresponsive and I have to kill it. Right clicking it gives the same result. I am unable to check the size of it. I've try defragmentation...
General Discussion
Unable to delete a file,can't delete it can't shred it,
I looked at my firewall events earlier and i saw a file had been trying to connect to the internet but had been blocked by my firewall. Whenever i install a program i am unsure of i block the exe file from connecting to the internet until i'm happy its a safe program. The file is...
General Discussion
Unable to delete file from desktop
So I have this file that doesn't have anything, not extention or file size at all. I tried to delete the icon from my desktop and Windows says "Could not find this item" "This is not longer located in C:/.... Verify the item's location and try again." I then saw on another post, about running...
General Discussion
Unable to delete file
Keep getting this error, no matter how many attempts I make to delete this file. http://i.imgur.com/okfgb.png I do not have video open at all. Please help
General Discussion
unable to delete a file (windows says its in use)
Well it happens to both of my video files (mkv) right after i've extracted the file. What puzzled me is that it says windows explorer is using it which i ddn't even play the video. I tried looking around in task manager trying to stop the process but stopping explorer.exe would end up closing...
General Discussion


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd

All times are GMT -5. The time now is 04:45.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App