Dismiss this notice
WinRAR forever! Father's Day 2019 Giveaway - [Only registered and activated users can see links Click here to register]

Dismiss this notice
SSDkeeper™ Professional Father's Day 2019 Giveaway - [Only registered and activated users can see links Click here to register]

Dismiss this notice
Ashampoo Cinemagraph Father's Day 2019 Giveaway - [Only registered and activated users can see links Click here to register]

Dismiss this notice
Revo Uninstaller Pro 4 Father's Day 2019 Giveaway - [Only registered and activated users can see links Click here to register]


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to empty the Windows Recycle Bin automatically
#1
Lightbulb 
Quote:
[Image: powershell-delete-recycle-bin-files.png]

All files that you delete regularly on Windows are moved to the Recycle Bin first. Designed as a last resort to recover accidentally deleted files, files that sit in the Recycle Bin may sit there for a long period. While that is not a huge problem most of the time, if disk space is scarce, it may be frustrating to empty the Recycle Bin manually regularly.

You could set a custom Recycle Bin size to avoid it occupying too much space on a drive, or, use automation to clear the Windows Recycle Bin regularly.

This guide offers a general solution to the Recycle Bin problem, and a specific solution that is only available on Windows 10 devices.

General Solution for all Windows versions

The following method is compatible with all Windows versions and editions. It requires the creation of a batch file and running that batch file either using a policy or as a startup command.

1. Right-click on the desktop or another folder and select New > Text Document.
2. Paste the following line of code into the document: PowerShell.exe -NoProfile -Command Clear-RecycleBin -Confirm:$false
3. Save the document.
4. Rename it to emptyrecyclebin.bat. Make sure the file has the .bat extension and not .bat.txt.
5. Test the file once to make sure it works.
[Only registered and activated users can see links Click here to register]
[-] The following 3 users Like harlan4096's post:
  • dinosaur07, JM Safe, silversurfer
Reply
#2
Thanks for the tip but i don't know how safe is this option as we all know that recycle bin is a good safety net if we accidentally delete a file or we change our mind.
On the other hand, there is an option in Windows to delete a file without sending it to recycle bin first if we want this kind of unsafe attitude.
[-] The following 3 users Like dinosaur07's post:
  • harlan4096, JM Safe, silversurfer
Reply
#3
Agree with dinosaur07, it can happens that we accidentally delete file, maybe it is also an important file and automatically empty the recycle bin it could be unsafe and unwanted.
[-] The following 2 users Like JM Safe's post:
  • dinosaur07, harlan4096
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)
[-]
Welcome
You have to register before you can post on our site.

Username:


Password:





[-]
Recent Posts
Skype 8.48.0.51
Skype 8.48.0.51: ...harlan4096 — 15:59
Google Allows G Suite Users to Log In Wi...
Google on Tuesday an...silversurfer — 15:08
EA Games Login Flaw Exposed Accounts of ...
Researchers have dis...silversurfer — 15:03
Windows 10 Bug Makes the Shutdown Proces...
A bug in Windows 10 ...silversurfer — 12:17
[Giveaway] MOVIEJACK
MOVIEJACK 4.0.7026 ...ismail — 12:15

[-]
Birthdays
Today's Birthdays
avatar (32)Tedscolo
avatar (39)brakasig
Upcoming Birthdays
No upcoming birthdays.

[-]
Online Staff
harlan4096's profile harlan4096
Administrator

>