hmm.
i could probably reproduce it. yes it happens randomly, thou it happened once or twice a for 3 days in a row.
I'm doing a windows os reinstall. Version 22H2 (OS Build 19045.2965)
refreshing my os after making i is spent 7 months playing with new softwares, e.g., vs code, git & github desktop, ahk, with dozens of side apps and extensions. I'm not a coder, just playing, so not surprised i made it act up. its running great now.
to make this reinstall in quicker and smoother i used SyncBackPro v8 to backup most everything in my user folder to an another hard drive.
i use syncbacks internal tool to compress my appdata folder.
and not the whole folder, i was selective in what i copied into the backup, e.g. software settings i was planning on reinstalling. and skipped a lot microsofts caches and setting already knowing you can't just put that back in place and expect it it work. LOL.
after the reinstalled i copied this 16G zip back to C:, un-zipped it (current my appdata is 21.3G, less than 72 hours old), to begin copying\moving back into AppData Local & Roaming. again selectively, i didn't just dump the archive. i moved the appdata piece by piece.

as i reinstalled programs id check the back up, copy over (just in cause there was problem i could troubleshoot it) its settings & caches, install, launch, double check. 90+% of the time its all great. had my system back in less than 2 days. i just, this afternoon, finish the installed i started Saturday afternoon. easy!
so. after i had copied the dirs out of the back up folder i would use shift
+del
as i went along.
deleting appdata files containing; .ini, .config, .inf, .exe, system and read only attributes, etc etc, i would get the delete protected files.
it was random as to when it would lock up dopus. small dirs didn't seem to bother it but, it seemed not to like large dirs with high file counts, such as %AppdData%\Local\Plex Media Server
, 5.44g with 50,437 cache & metadata files. and i was just able to reproduce with this dir. i copied it into my profile folder then shift
+del
do you have plex on your machine?