Windows 10: Deleting system files from an old hard drive

Discus and support Deleting system files from an old hard drive in Windows 10 Network and Sharing to solve the problem; I followed this script: " OK, open a Command Prompt window as Administrator Windows + X keys together and then select Command Prompt Admin from the... Discussion in 'Windows 10 Network and Sharing' started by macdz25, Jan 1, 2021.

  1. macdz25 Win User

    Deleting system files from an old hard drive


    I followed this script:


    "

    OK, open a Command Prompt window as Administrator

    Windows + X keys together and then select Command Prompt Admin from the resulting menu


    Run each of these commands and press enter after each one, this will remove the old Program Files Folder

    Replace Z with the drive letter of your second drive:


    takeown /F "Z:\Program Files\" /A /R /D Y
    cacls "Z:\Program Files\*.*" /T /grant administrators:F
    rmdir /s /q "Z:\Program Files\"


    Then repeat the process, replacing Program Files with Windows to remove the old Windows folder ."


    from the link "

    https://answers.microsoft.com/en-us/windows/forum/windows_10-files-winpc/deleting-system-files-from-an-old-hard-drive/0a222dae-c7c9-47a1-a9f4-8343df96c0ac

    Posted by DaveM121 on Oct-9-2016.


    I could delete and successfully remove the folder "Program Files" but with folders "Program Files x86 and "Windows" when applied the command "rmdir /s /q "Z:\Windows\" the result for each item is "Access is denied"!


    Could there be something wrong with those two folders?

    :)
     
    macdz25, Jan 1, 2021
    #1
  2. Alden Rey Win User

    deleting hard drive files

    Hi,

    May we know what type of file are you trying to delete? Would it be Office documents, media files, or picture files? If you're trying to delete files for free some space on your device. We suggest to perform a Disc Cleanup. Kindly follow the steps below to
    perform the task:

    • Type in Cortana Disc Cleanup
    • Choose the files to delete
    • Click on "Clean up system files"
    • Click on Ok

    For any concerns, don't hesitate to get back to us.

    Regards.
     
    Alden Rey, Jan 1, 2021
    #2
  3. JHT_USA Win User
    Delete Files from old hard drive

    I have replaced my hard disc drive (C) with a cloned Solid state drive. I am using my old hard disc drive now (E) for storage only. When I attempt to delete old files (operating system, etc.) off the hard disc drive (E), i get a message that says I'm required
    to provide administrator permission to delete any files or folders. How can I do this?
     
    JHT_USA, Jan 1, 2021
    #3
  4. xarzu Win User

    Deleting system files from an old hard drive

    new system old hard drive...

    I have an old hard drive that has those old ribbon connections to transfer data to the mother board.

    I have a new computer that mostly uses those cool little ATA (I think that is what they are called) connections.

    The new computer has a Vista OS.

    I opened up the case and I was supprised to see on the motherboard a wide ribbon connection and so I connected the old hard drive and a free power connection.

    When I turned on the computer, the system started up like usual and did not notice the new hard drive.

    I went to the Control Pannel and did an automatic add hard drive call and it did not find the old hard drive.

    Any suggestions?
     
    xarzu, Jan 1, 2021
    #4
Thema:

Deleting system files from an old hard drive

Loading...
  1. Deleting system files from an old hard drive - Similar Threads - Deleting system files

  2. Accessing files from old hard drive

    in Windows 10 Network and Sharing
    Accessing files from old hard drive: My old laptop crashed. I was able to get the hard drive out of the laptop and I got a reader. This old laptop was upgraded to Windows 10 long before it died. I just purchased a new laptop with Windows 11. When I hook up to the old hard drive, it will not allow me to access my...
  3. Accessing files from old hard drive

    in Windows 10 Gaming
    Accessing files from old hard drive: My old laptop crashed. I was able to get the hard drive out of the laptop and I got a reader. This old laptop was upgraded to Windows 10 long before it died. I just purchased a new laptop with Windows 11. When I hook up to the old hard drive, it will not allow me to access my...
  4. Accessing files from old hard drive

    in Windows 10 Software and Apps
    Accessing files from old hard drive: My old laptop crashed. I was able to get the hard drive out of the laptop and I got a reader. This old laptop was upgraded to Windows 10 long before it died. I just purchased a new laptop with Windows 11. When I hook up to the old hard drive, it will not allow me to access my...
  5. Can't delete system files from extra hard drive

    in Windows 10 Gaming
    Can't delete system files from extra hard drive: I installed an extra hard drive in my laptop from an older laptop I used in 2020, I gave it to my little brother and installed Windows 8.1 on it in 2021, now I installed that hard drive on my laptop and I can't delete the system files. I've deleted most files, but I need to...
  6. Can't delete system files from extra hard drive

    in Windows 10 Software and Apps
    Can't delete system files from extra hard drive: I installed an extra hard drive in my laptop from an older laptop I used in 2020, I gave it to my little brother and installed Windows 8.1 on it in 2021, now I installed that hard drive on my laptop and I can't delete the system files. I've deleted most files, but I need to...
  7. How to remove Windows system files from old hard drive

    in Windows 10 Network and Sharing
    How to remove Windows system files from old hard drive: I bought a new PC that has Windows 10 pre-installed. I'm using the old 1TB drive from the previous system as a data drive. Let's call it the D: drive. The D: drive used to be the boot drive and has lots of Windows system files on it that I want to delete to free up space....
  8. Transferring files from old hard drive to new hard drive

    in Windows 10 Network and Sharing
    Transferring files from old hard drive to new hard drive: Hello, My laptop recently broke that was running Windows 7. I bought a new laptop that is running Windows 10. Since my old laptop would not start, I bought a hard drive enclosure so I could move everything off my old hard drive onto my new one. I am confused with exactly...
  9. deleting files from external hard drive

    in Windows 10 Network and Sharing
    deleting files from external hard drive: trying to delete and getting error code 0*80070570, what does it mean https://answers.microsoft.com/en-us/windows/forum/all/deleting-files-from-external-hard-drive/8390b5f9-4abf-4ff3-aa8d-29caf58d76e1"
  10. delete system files on old drive

    in Windows 10 Network and Sharing
    delete system files on old drive: How do I delete system files on a hard disk that is no longer the boot disk? https://answers.microsoft.com/en-us/windows/forum/all/delete-system-files-on-old-drive/fcca3c2d-6e30-4ad0-84a0-d416759010aa"