Jordan Posted August 31, 2016 Share Posted August 31, 2016 Empty Recycle Bin Automatically in Windows 10 Windows has a special location called Recycle Bin where deleted files and folders are stored temporarily, so the user has a choice to restore accidentally deleted stuff or remove it permanently. In this article, we will see how to automate the Recycle Bin cleanup process in Windows 10. In Windows 10, there is a special PowerShell cmdlet that serves to empty the Recycle Bin properly. If you create a shortcut which executes this PowerShell cmdlet, you will be able to clean the Recycle Bin every time you start your PC or on a schedule. Here is how it can be done. Press Win + R shortcut keys together on the keyboard to open the Run dialog. Type or copy-paste the following in the Run box: shell:Startup The text above is a special shell command which makes File Explorer open the Startup folder directly. Right click here to create a new shorcut. Type the following in the Target text box: cmd.exe /c "echo Y|PowerShell.exe -NoProfile -Command Clear-RecycleBin" See the following screenshot: Name your shortcut as "Empty Recycle Bin" and specify an icon if you want. After doing the steps above, you can reboot your PC and open your Recycle Bin folder. It will be empty. Behind this trick is a new cmdlet Clear-RecycleBin which clears the Recycle Bin content. Combined with the "echo Y" console command, it is getting auto confirmation. Instead of emptying the Recycle Bin automatically every time your start Windows 10, you might want to schedule the appropriate task in Task Scheduler. Open Control Panel. Go to Control Panel \ System and Security \ Administrative Tools. In the newly opened window, double-click the shortcut "Task Scheduler": In the left pane, click the item "Task Scheduler Library": In the right pane, click on the link "Create task": A new window titled "Create Task" will be opened. On the "General" tab, specify the name of the task. Pick an easily recognizable name like "Empty Recycle Bin". You can also fill in the description if you want. Under "Configure for", select "Windows 10": Switch to the "Triggers" tab. There, click the "New..." button. Define here the desired time to empty the Recycle Bin. Now, switch to the Actions tab. Add a new action by clicking the "New... button". In Program/script, type the following: cmd.exe In the box "Add arguments (optional)", type or copy-paste the following text: /c "echo Y|PowerShell.exe -NoProfile -Command Clear-RecycleBin" You are done. SOURCE Link to comment Share on other sites More sharing options...
Chancer Posted August 31, 2016 Share Posted August 31, 2016 Does this do anything different to right click and empty? (Yes - I know this automates it) Link to comment Share on other sites More sharing options...
pc71520 Posted August 31, 2016 Share Posted August 31, 2016 1 hour ago, Chancer said: Does this do anything different to right click and empty? (Yes - I know this automates it) Keep wondering about the same... Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.