How do I Remove stubborn files from the Recycle Bin


  1. Posts : 51
    Windows 10
       #1

    How do I Remove stubborn files from the Recycle Bin


    I am running Windows 10 Home v1803. I cannot delete folders from the recycle bin. I felt fortunate to delete them from my backup drive, but now they are stuck in the recycle bin. When I try to delete a folder (and underlying files), I get an error: "You need permission to perform this action You require permission from Administrators to make changes to this folder." As far as I know, I don't have an "Administrators" user. I have an Administrator but not with the "s". So how can I delete these folders and files?
    .
    The originating problem is this. I have a problem with external backup drives all the time. The problem is I cannot delete old, unwanted files that were backup up from a computer I don't have anymore. In the case above, I somehow managed to get thousands of folders and files to the Recycle Bin.
      My Computer


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

    Eddo51 said:
    The originating problem is this. I have a problem with external backup drives all the time. The problem is I cannot delete old, unwanted files that were backup up from a computer I don't have anymore. In the case above, I somehow managed to get thousands of folders and files to the Recycle Bin.

    The problem is that the files/folder were owned by the account(s) from that old PC, and those don't exist on this PC. Even if an old account account had the same name as one on this PC is is still a different (and unknown) account as far as the new PC is concerned.

    To delete them you have to first take ownership, then you can grant yourself full access and will be able to delete them. You may need to restore the 'deleted' files in order to take ownership.

    Change Owner of File, Folder, Drive, or Registry Key in Windows 10 | Tutorials

    Change Permissions of Objects for Users and Groups in Windows 10 | Tutorials
      My Computers


  3. Posts : 5,327
    Windows 11 Pro 64-bit
       #3

    You can try deleting $Recycle.Bin folder and restart your computer to let Windows re-create the $Recycle.Bin folder.

    Open the Command Prompt as a administrator and type following command:

    Code:
    rd /s /q c:\$Recycle.Bin
    Restart your computer.
      My Computer


  4. Posts : 2,450
    Windows 10 Pro x64
       #4

    Bree said:
    The problem is that the files/folder were owned by the account(s) from that old PC, and those don't exist on this PC. Even if an old account account had the same name as one on this PC is is still a different (and unknown) account as far as the new PC is concerned.

    To delete them you have to first take ownership, then you can grant yourself full access and will be able to delete them. You may need to restore the 'deleted' files in order to take ownership.

    Change Owner of File, Folder, Drive, or Registry Key in Windows 10 | Tutorials

    Change Permissions of Objects for Users and Groups in Windows 10 | Tutorials

    Absolutely correct! That's the proper way to do it.

    And once done, it won't hurt to delete the $Recycle Bin folder, for your account, by running in an elevated PowerShell the following command

    Code:
    Get-Item (Join-Path -Path 'C:\$Recycle.Bin' -ChildPath (Get-LocalUser | where Name -EQ $env:USERNAME).SID) -Force | Remove-Item -Force -Recurse
      My Computer


  5. Posts : 51
    Windows 10
    Thread Starter
       #5

    Thanks. I'll try these on the weekend. Goodnight.
      My Computer


  6. Posts : 7,901
    Windows 11 Pro 64 bit
       #6

    Treesize Free will do this https://www.jam-software.com/treesize_free/
      My Computers


  7. Posts : 51
    Windows 10
    Thread Starter
       #7

    Bree said:
    The problem is that the files/folder were owned by the account(s) from that old PC, and those don't exist on this PC. Even if an old account account had the same name as one on this PC is is still a different (and unknown) account as far as the new PC is concerned.

    To delete them you have to first take ownership, then you can grant yourself full access and will be able to delete them. You may need to restore the 'deleted' files in order to take ownership.
    Change Owner of File, Folder, Drive, or Registry Key in Windows 10 | Tutorials
    Change Permissions of Objects for Users and Groups in Windows 10 | Tutorials
    Thanks Bree. This worked very nicely. Quick and easy. I did not know about the takeown command before.
      My Computer


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

      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 09:30.
Find Us




Windows 10 Forums