• tychosmoose@lemm.ee
    link
    fedilink
    arrow-up
    16
    ·
    4 days ago

    Process Explorer (the sysinternals tool) will show you which process has the handle open to the file.

    • Jtee@lemmy.world
      link
      fedilink
      English
      arrow-up
      3
      ·
      4 days ago

      FWIW, it’s usually Windows Installer, Windows Explorer, or some other system task. If you open a command prompt and ready the del command, you can kill Windows Explorer and then run your delete.

  • Midnight Wolf@lemmy.world
    link
    fedilink
    English
    arrow-up
    3
    ·
    edit-2
    3 days ago

    I would say ‘just reboot’ but because I’m petty and also because I’ve had shit not release even after a reboot:

    • Boot a live iso
    • Mount the drive
    • Delete that shit with the utmost prejudice
    • Reboot
    • Sunglasses (yeaaaaaaaaahhhhhhhh)

    E: fancy formatting

  • merthyr1831@lemmy.ml
    link
    fedilink
    English
    arrow-up
    3
    ·
    3 days ago

    first lmao

    second, I’d get powertoys for windows, it has a feature that shows you what processes are holding onto a particular file/directory so you can kill the process and get the file dealt with.

  • Cort@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    3 days ago

    Looks like a restart fixed it, but I think it refused to delete since you had the folder open. Your task manager showed 2 instances of windows explorer. I bet it was minimized and got overlooked

    • irelephant 🍭@lemm.eeOPM
      link
      fedilink
      arrow-up
      3
      ·
      3 days ago

      No, the first one is the explorer instance that I tried to delete the folder in, the second is the popup in the screenshot.

  • over_clox@lemmy.world
    link
    fedilink
    arrow-up
    1
    arrow-down
    2
    ·
    4 days ago

    Almost seems like you might have some sort of virus or malware.

    There’s a magic registry key that can force delete folders and files before Windows has even finished booting. It’s intended to be used during Windows updates, but when used creatively, can perform some brute force fixes.

    This link isn’t exactly relevant, but I’m not home right now to dig that deep into the registry to offer that sort of advice at the moment.

    https://www.solveyourtech.com/how-to-force-delete-a-file-windows-11-step-by-step-guide/

    If that doesn’t help, hit me up later and I’ll do my best to turn the registry inside out…