How do I Remove stubborn files from the Recycle Bin Solved

  1.    #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 ComputerSystem Spec

  2. Bree's Avatar
    Posts : 10,543
    10 Home x64 (1809) (10 Pro on 2nd pc)
       #2

    Eddo51 said: View Post
    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 ComputersSystem Spec

  3.    #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 ComputerSystem Spec

  4.    #4

    Bree said: View Post
    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 ComputerSystem Spec

  5.    #5

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

  6.    #6

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

  7.    #7

    Bree said: View Post
    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 ComputerSystem Spec

  8. Bree's Avatar
    Posts : 10,543
    10 Home x64 (1809) (10 Pro on 2nd pc)
       #8

      My ComputersSystem Spec


 

Related Threads
I use a USB external drive for backups. MS gives me a Recycle Bin and a System Volume Information directory, neither of which I can get rid of. Am I stuck with them?
Add or Remove Empty Recycle Bin Context Menu for Recycle Bin in Windows The Recycle Bin provides a safety net when deleting files or folders. When you delete any of these items from a hard disk, Windows places it in the Recycle Bin and the...
How to Add or Remove Recycle Bin in Navigation Pane of File Explorer in Windows 10 The Recycle Bin provides a safety net when deleting files or folders. When you delete any of these items from your hard disk, Windows places it in the Recycle...
Sorry if it's been asked before but couldn't find this in searching the forum - is there a registry hack to get rid of the 'Pin to Start' option when you right-click on the Recycle Bin icon on desktop? I keep clicking on this in error when going to...
I can not believe, I am actually asking this, but I can not find the answer. :o

Tags for this Thread

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 11:25.
Find Us