System files on data SSD; How to get rid of them?

Page 1 of 2 12 LastLast

  1. Posts : 21
    Windows 10
       #1

    System files on data SSD; How to get rid of them?


    System files on data SSD; How to get rid of them?-systeembestanden-op-data-ssd.png
    As you can see on the attached image, there are system files on my dataSSD.
    I don't want those files to be there. But when I want to delete them, clicking on them and pressing delete button.
    I get the following: System files on data SSD; How to get rid of them?-administratormachtigingen-vereist.png And when I click on 'Doorgaan' which means Continue. I get this: System files on data SSD; How to get rid of them?-niet-gemachtigd-voor-deze-bewerking.png So, what can I do?


    System files on data SSD; How to get rid of them?-windows-versie.png
    System files on data SSD; How to get rid of them? Attached Files
      My Computer


  2. Posts : 5,468
    Windows 11 Home
       #2

    Run CMD as admin and copy/paste:
    Code:
    takeown /s %computername% /u %username% /f "D:\Program Files" /r /d y
    icacls "D:\Program Files" /inheritance:r
    icacls "D:\Program Files" /grant:r %username%:(OI)(CI)F /t /l /q /c
    rd "D:\Program Files" /s /q
    
    takeown /s %computername% /u %username% /f "D:\WindowsApps" /r /d y
    icacls "D:\WindowsApps" /inheritance:r
    icacls "D:\WindowsApps" /grant:r %username%:(OI)(CI)F /t /l /q /c
    rd "D:\WindowsApps" /s /q
      My Computer


  3. Posts : 43,251
    Win 10 Pro (22H2) (2nd PC is 22H2)
       #3

    There's nothing too hard about deleting 'undeletable' files- and you don't need to learn commands to do it.

    So, once again...

    1. Delete them without Windows running- offline.
    E.g. from a bootable disk.

    2. Within Windows (or outside it - offline)
    You could 'take ownership' - see the searchable tutorial section.

    3. Do yourself a favour- get a copy of Emco Unlockit (free).
    UnLock IT Free - Unlock a File or Folder Locked by the System

    This deals with all of the above, and with locking processes.

    Should it be necessary, the move/copy/deletion is scheduled to be done when the PC reboots. (I.e. when Windows isn't running).
    Last edited by dalchina; 3 Weeks Ago at 06:53.
      My Computers


  4. Posts : 2,178
    Windows 11 Pro (latest update ... forever anal)
       #4

    Did you have this drive connected/partition active when Windows was installed? Window has a propensity to add system files to any extraneous drive (or non-system partition, even) during installation.

    What you'll have to be prepared for is that the system may fail if certain system files are deleted
      My Computers


  5. Posts : 31,928
    10 Home x64 (22H2) (10 Pro on 2nd pc)
       #5

    Renault R35 said:
    As you can see on the attached image, there are system files on my dataSSD.
    I don't want those files to be there.
    ...
    As others have said, it is relatively easy to delete such folders and files.

    But before you do so take a moment to find out how they got there. Being owned by TrustedInstaller they look like they were created legitimately, even if unintentionally. What apps or programs do they contain? You may want to consider uninstalling them first, so you could then reinstall to C: drive after cleaning up.
      My Computers


  6. Posts : 13
    WIN 10
       #6

    As long as it is not sure that you can't delete the folders without any risk, you can hide them:
    C:\Windows\System32>attrib +H "D:\......"
      My Computer


  7. Posts : 2,980
    Windows 10 Pro for the Bro
       #7
      My Computer


  8. Posts : 21
    Windows 10
    Thread Starter
       #8

    System files on data SSD; How to get rid of them?-opdrachtprompt-gedraaid.png
    Because there were so many replies provided, I chose to go through them one by one in order.
    I first ran the solution @TairikuOkami with the command line.
    And the above screenshot is the result of directly copying and pasting the code into the command line.
    Running it as administrator.

    Because I'm not exactly a computwiz, I don't know much about all these terms and such.
    I'm someone who is trying to fix as much of his computerproblems himself as he possibly can do.
    Since my experience with someone hiring to do it for me.
    Haven't been the greatest.

    So excuse me when I might need some more explanation or help before I get it.
    Because it isn't something I'm doing on a daily basis.

    What should I do next?
      My Computer


  9. Posts : 43,251
    Win 10 Pro (22H2) (2nd PC is 22H2)
       #9

    If you want to delete them- and you're happy to do that- you have everything you need in the replies above and more.
    Just choose one method.
      My Computers


  10. Posts : 2,178
    Windows 11 Pro (latest update ... forever anal)
       #10

    There is still he unknown quantity that these may be critical system files, and the system may fail if they're deleted

    If it were me, I'd ....
    1) create a full image (Macrium Reflect and/or AOMEI Backupper) of the systems drive/partitions (i.e. all EXCEPT the partition/drive on which the subject/errant system files are contained)
    2) remove/disconnect ALL drives
    3) insert a blank drive and restore the image

    If the system starts normally, then the subject/errant files are irrelevant and can be deleted safely as per above suggestion(s)

    EDIT In any case, I'd be looking at doing an image/images anyway

    EDIT 2 Still not clear - is the D: Data a separate drive or a partition on the same drive a C: ?
      My Computers


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 14:45.
Find Us




Windows 10 Forums