Ever found yourself breaking into a sweat after accidentally deleting a file, only to have the Recycle Bin save it from the void? We know we have! And we thank our lucky stars we have the Recycle Bin. But at other times, emptying the Recycle Bin can be pretty annoying; sort of like having to take out your neighbor’s garbage!
Since items stored in the Recycle Bin still take up hard disk space, it is a good idea to empty the bin every now and again. Of course, with a script like this, emptying the Recycle Bin doesn’t have to feel like such a chore.
If you — or any of your clients — have multiple hard drives or partitions connected to a single computer, each location will have its own Recycle Bin. While that may seem like it just adds more work to your already overloaded work day, you can use this script to conveniently empty the Recycle Bin in a jiffy.
This script deletes all files in the Recycle Bin of the system drive (typically the C: drive) for all users.
The Script:
Atera does not guarantee the integrity, availability, security, virus-free, safety, lawfulness, non-infringement, rights’ status, or functionality of the scripts. The use of the shared scripts is at your own risk. Scripts are provided “AS IS”. *
del /s /q %systemdrive%\$Recycle.bin
Technical Notes:
If you have an audit or compliance requirement, we recommend scanning the contents of users’ Recycle Bins before running this script to make sure no important files are deleted.
[blog_cta heading=”Explore our shared script library
” heading_size=”big” href=”https://www.atera.com/signup/?utm_source=utm_campaign=CTA_Blog” link_text=”Try Atera for free” text=”The all-in-one IT management platform that will take your IT operations to the next level!