Cannot delete files

User avatar
ErikJan
5StarLounger
Posts: 881
Joined: 03 Feb 2010, 19:59
Location: Terneuzen, the Netherlands

Cannot delete files

Post by ErikJan »

The last few months I frequently have situations that after I move a file from my desktop to a folder, the file remains on the desktop and does not delete. The icon is gone, but what remains has become inaccessible. I cannot run it anymore, I cannot rename it and most of all: I cannot delete it.

So of course, I checked the obvious things: I am administrator on my system, I went to Properties / security but I have NO rights there (I cannot make myself owner: no rights). I went to an elevated CMD (or PowerShell) prompt... nothing. I tried "TakeOwn", nothing.
If I do a 'dir' in Powershell I even get an error on the files.

Last resort: I do "UnLocker" and have the files deleted after reboot... Does not work...!

After a few days, the file sometimes disappear...

The only thing that worked is start in Safe-mode. But I don't want that all the time.

Why does this happen and/or how do I get to the files so I can delete them?

User avatar
Rudi
gamma jay
Posts: 25024
Joined: 17 Mar 2010, 17:33
Location: Cape Town

Re: Cannot delete files

Post by Rudi »

I have encountered this scenario from time to time also. In my case the file actually was moved/deleted but the desktop or folder was not refreshed automatically. So simply pressing F5 refreshed the desktop or folder and the icons disappeared. I'm not saying this is what you are experiencing, but if it happens again, try pressing F5 and see if that helps.

PS: I'm not sure why my PC sometimes does not refresh, but it seems intermittent and later fixes itself???!
Regards,
Rudi

If your absence does not affect them, your presence didn't matter.

CraigS26
2StarLounger
Posts: 100
Joined: 02 Nov 2016, 12:56

Re: Cannot delete files

Post by CraigS26 »

https://superuser.com/questions/1258643 ... -files-fol

Various settings Solutions in this above Thread to consider......
Win 10-64 Home v1909 | Diapers, Politicians, and the Media ... All Need Changing for the Same Reason!

User avatar
ErikJan
5StarLounger
Posts: 881
Joined: 03 Feb 2010, 19:59
Location: Terneuzen, the Netherlands

Re: Cannot delete files

Post by ErikJan »

I tried this, it's no a refresh issue. The files are there, also after a reboot...

User avatar
DaveA
SilverLounger
Posts: 2428
Joined: 24 Jan 2010, 15:26
Location: Olympia, WA

Re: Cannot delete files

Post by DaveA »

Is this desktop folder related to any cloud function?
I am so far behind, I think I am First :evilgrin:
Genealogy....confusing the dead and annoying the living

User avatar
ErikJan
5StarLounger
Posts: 881
Joined: 03 Feb 2010, 19:59
Location: Terneuzen, the Netherlands

Re: Cannot delete files

Post by ErikJan »

Nope, nothing OneDrive or similar

User avatar
DaveA
SilverLounger
Posts: 2428
Joined: 24 Jan 2010, 15:26
Location: Olympia, WA

Re: Cannot delete files

Post by DaveA »

What type of files are these that you can NOT remove?

Also do you have system hidden files turned on?
I am so far behind, I think I am First :evilgrin:
Genealogy....confusing the dead and annoying the living

User avatar
ErikJan
5StarLounger
Posts: 881
Joined: 03 Feb 2010, 19:59
Location: Terneuzen, the Netherlands

Re: Cannot delete files

Post by ErikJan »

All good questions, thanks. It happens with all type files and it's not related to file properties like hidden or system.

I have not had this the last few days BTW; as soon as it happens again I'll try to post some screenshots

User avatar
ErikJan
5StarLounger
Posts: 881
Joined: 03 Feb 2010, 19:59
Location: Terneuzen, the Netherlands

Re: Cannot delete files

Post by ErikJan »

It happened again just now...

User avatar
ErikJan
5StarLounger
Posts: 881
Joined: 03 Feb 2010, 19:59
Location: Terneuzen, the Netherlands

Re: Cannot delete files

Post by ErikJan »

And again...

CraigS26
2StarLounger
Posts: 100
Joined: 02 Nov 2016, 12:56

Re: Cannot delete files

Post by CraigS26 »

So of course, I checked the obvious things: I am administrator on my system, I went to Properties / security but I have NO rights there (I cannot make myself owner: no rights).
==============================================================
Properties above is the SAME Rt-Clk My PC Desktop Properties I posted about?
Don't forget I could Not - SAVE to Desktop - and found that in My PC\Desktop\Rt Clk\Properties\Security tab\Everyone (group) had the Modify Box UN-chk'd --- I chk'd it and (Then) Saved a Word Doc to the desktop + dnloaded a small app.

IF we're talking the Same Properties then THAT may be part of the Solution and you must find WHY you cannot gain Rights to Change settings as I did.
Win 10-64 Home v1909 | Diapers, Politicians, and the Media ... All Need Changing for the Same Reason!

User avatar
ErikJan
5StarLounger
Posts: 881
Joined: 03 Feb 2010, 19:59
Location: Terneuzen, the Netherlands

Re: Cannot delete files

Post by ErikJan »

Thanks Craig, not sure if I follow what you are trying to say. This is NOT related to desktop refreshing; the problem even survives reboots. Oddly enough.. I comes suddenly and after a while the files disappear suddenly as well.

I tried hard to make this reproducible but to date I can't.

(I I can make screen shots available if needed)

CraigS26
2StarLounger
Posts: 100
Joined: 02 Nov 2016, 12:56

Re: Cannot delete files

Post by CraigS26 »

I wasn't speaking of Desktop Refresh.
I was interested in a My PC Desktop Properties Modify Box Setting that in my case for the "Everyone" group was UN-chk'd; Chking it FIXed my inability to Save to Desktop and I reasoned a SETTINGS change in Your Desktop Properties may be in order as was the case for me.
I wasn't clear IF - Properties / security - mentioned in your Post #1 was the Same as the one I Modified. IF the same then you should have then ability to Chk a Box that needs it.
My Save to Desktop and your Delete issues FROM Desktop are not twins for sure, but at this stage it seemed worth a shot to look there.
EVERYONE MODIFY BOX CHKd.jpg
You do not have the required permissions to view the files attached to this post.
Win 10-64 Home v1909 | Diapers, Politicians, and the Media ... All Need Changing for the Same Reason!

User avatar
ErikJan
5StarLounger
Posts: 881
Joined: 03 Feb 2010, 19:59
Location: Terneuzen, the Netherlands

Re: Cannot delete files

Post by ErikJan »

Here are my results

For the Desktop, I'd argue that EveryOne is nice, but not correct as other users should not see one's Desktop.
Desktop.png
For my file I see this:
File.png
If I click Advanced I get this (same message for the "Effiective Access" tab)
permissions.png
You do not have the required permissions to view the files attached to this post.

User avatar
ErikJan
5StarLounger
Posts: 881
Joined: 03 Feb 2010, 19:59
Location: Terneuzen, the Netherlands

Re: Cannot delete files

Post by ErikJan »

Files are still there... I believe the only way to get rid of them is wait (sometimes they suddenly disappear) or reboot in safe-mode.

FYI; I tried tools like "UnLocker" that delete files during boot... Doesn't work!

User avatar
ErikJan
5StarLounger
Posts: 881
Joined: 03 Feb 2010, 19:59
Location: Terneuzen, the Netherlands

Re: Cannot delete files

Post by ErikJan »

I tried icacls and takeown in an elevated CMD window: "Access denied".

A DIR still lists the file and I see it on my desktop but with a white rectangular icon only

Attrib works (giving just "A"), but I can't change it

User avatar
DaveA
SilverLounger
Posts: 2428
Joined: 24 Jan 2010, 15:26
Location: Olympia, WA

Re: Cannot delete files

Post by DaveA »

Are you trying to delete this file by clicking the icon on the desktop or from Windows Explores and selecting it from the list?

Also, if from the list, are you logged in as the user of this desktop folder?
I am so far behind, I think I am First :evilgrin:
Genealogy....confusing the dead and annoying the living

User avatar
ErikJan
5StarLounger
Posts: 881
Joined: 03 Feb 2010, 19:59
Location: Terneuzen, the Netherlands

Re: Cannot delete files

Post by ErikJan »

DaveA wrote:
30 Jun 2020, 14:16
Are you trying to delete this file by clicking the icon on the desktop or from Windows Explores and selecting it from the list?

Also, if from the list, are you logged in as the user of this desktop folder?
Yes, yes and yes. :)

No matter what I do, I can't delete the file. Not from the Desktop, nor from File Explorer. And yes, I am admin and owner.

Note: the one file I got appeared WITH it's original icon today and I could delete it... Magic?

User avatar
BobH
UraniumLounger
Posts: 7667
Joined: 13 Feb 2010, 01:27
Location: Temple - Deep in the Heart of Texas

Re: Cannot delete files

Post by BobH »

Is it possible that malware of some kind has crept into your system?
Run whatever anti-malware software you have to see if anything turns up.
Regards, BobH
Story of my life: I knew better but did it anyway!
Intel Core i5, 3570K, 3.40 GHz, 16 GB RAM, ECS Z77 H2-A3 Mobo, Windows 7 >HPE 64-bit, MS Office 2016

User avatar
ErikJan
5StarLounger
Posts: 881
Joined: 03 Feb 2010, 19:59
Location: Terneuzen, the Netherlands

Re: Cannot delete files

Post by ErikJan »

Now, I have antivirus (paid), MalwareBytes (paid), run ADWCleaner and HitManPro occasionally and if I don't trust a file I check with VirusTotal... All my software is legal. Very slim chance I have 'something'. Good suggestion however, thanks :)