![Cut Down Clutter: How to Set Up AutoFileDeletion on WINOS](https://thmb.techidaily.com/e3528d506823cb6dca25eee03d51754fbb17fe96f4d59ce559e11e5be6c55331.jpg)
Cut Down Clutter: How to Set Up AutoFileDeletion on WINOS
![](/images/site-logo.png)
Cut Down Clutter: How to Set Up AutoFileDeletion on WINOS
For many, a cluttered desktop and downloads folder is just a way of life—no matter how hard you try, they somehow always ends up disorganized. Need to do a bit of digital spring-cleaning? Fortunately, there are lots of ways you can keep your Windows 10 computer decluttered.
You can get rid of Windows 10 bloatware. You can sort your right click menu. You can even declutter your search results. And of course, you can clean up your desktop. If you’re looking for a more passive approach, here’s how to erase old files on Windows 10 and 11.
1. Auto-Delete Old Files or Folders Using Storage Settings
The Settings menu lets you do and manage a lot of stuff on your Windows computer. From updates to tweaking the Windows appearance—you can do almost everything. It’s no surprise then that you can also use it for setting up an auto-deletion setting on your Windows. Here’s how:
- Go to Settings > System > Storage.
- Toggle on the Storage Sense feature.
- Then, click Configure Storage Sense or run it now.
- Under Temporary Files, set up your desired time frames fore deleting files in the recycle bin and files in your Downloads folder.
Not all files in the Downloads folder will be deleted after the set time; just those that haven’t been opened. This means if you download a file and want to open it later, it will still be deleted after the set time. If you turn this setting on, you should move anything out of the Downloads folder that you intend to keep.
If you want, you can always turn off the setting by simply disabling the Storage Sense button later on.
2. Deleted Old Files or Folders With the Command Prompt
Like most things on Windows, you can use the Command Prompt here as well. A replacement for the easy pin-and-point graphical user interface, the Command Prompt works with simple text-based commands to help you perform different admin functions and fix various troubleshooting issues on Windows.
Here’s how you can use it to fix your storage issues via the ForFiles command on Windows:
- Head to the Start menu search bar, type in ‘cmd’, and run the CMD as an administrator.
- Now, to delete the files that you haven’t modified in 30 days, type in the following command and hit Enter:
ForFiles /p "C:\path\to\folder"/s /d -30 /c "cmd /c del /q @file"
The “C:\path\to\folder” and /d -30 here refer to the folder path from where you want to delete files and the specific time for which you’d like to delete your file. Replace them with the settings that suit you.
Parental Control Software
![command prompt on windows](https://static1.makeuseofimages.com/wordpress/wp-content/uploads/2023/09/command-prompt-on-windows.jpg)Your files will be removed as quickly as soon as you hit the above commands.
3. Use Task Scheduler on Windows
Task Scheduler is a simple Windows tool that lets you easily automate your repetitive Windows tasks. Just set up the task, and the app will handle whatever you have asked it to do. When it comes to auto-deleting your files or folders, the ForFiles command is what you will need to help you delete your older files or folders.
Here’s how you can automate the deletion:
- Head to the Start menu search bar, type in ‘task scheduler’, and select the best match.
- Right-click on Task Scheduler Library and select New Folder.
- Put in any name and click on OK.
- Right-click on the recently created folder and select the Create Task option.
- In the Name box, enter a name for the task.
- Now, in the General tab, under the Security options section, select the Run whether the user is logged on or not option.
- Make sure the Do not store password checkbox is unselected.
- Click on the Triggers tab and select the New button.
- Select On a schedule option using the Begin the task setting.
- Under the Settings section, set up the timings of the tasks you’d like to run. Finally, click on OK.
Now, head to the Actions tab and click on the New button. From the Actions drop-down menu, select the Start a program option.
In the Program/script box, type in the following command:
ForFiles
Similarly, in the Add arguments box, type in the following command:
/p "C:\path\to\folder"/s /d -30 /c "cmd /c del /q @file"
In the above command, tweak the “C:\path\to\folder“ to the path of the folder where your files are and replace “/d -30“ with actual number you’d like pick. So, your command will become something like this:
/p "%userprofile%\Users\[Your Username]\Downloads" /s /d -30 /c "cmd /c del /q @file"
Click on OK. Finally, from the Settings tab, check the following checkboxes and then click on OK:
- Allow task to be run on demand.
- Run the task as soon as possible after a scheduled start is missed.
- If the task fails, restart every.
That’s it—finalize the changes by clicking OK once again, and you will be done in no time. From here forward, your files will be automatically deleted within the specified time. Of course, if you later change your mind you can always reverse this setting by simply deleting the new folder your created in first step (which in our case, will be New Folder 1).
Auto-Deleting Old Files or Folders on a Windows Computer
Keeping unnecessary files on your computer is seldom useful. They eat up memory space, hamper your PC’s performance, and clog the file organization. Setting up auto-delete instructions, with whichever method you prefer, lets you rid your PC of this extra baggage.
However, we’d add that auto-removing files or folders from your PC is just one part of cleaning up your Windows. There are many other important hacks such as removing unused apps, terminating pointless background processes, and tweaking settings to whatever is most relevant to your situation. So, make sure you follow all the best principles for running your Windows as smoothly as possible.
You can get rid of Windows 10 bloatware. You can sort your right click menu. You can even declutter your search results. And of course, you can clean up your desktop. If you’re looking for a more passive approach, here’s how to erase old files on Windows 10 and 11.
Also read:
- [New] 2024 Approved Pocket Guide Retaining Twitter Media on Your Cellphone
- [New] 2024 Approved Ultimate Showdown Battle Royale's Top Titles
- [New] 2024 Approved Unlocking the Power of Words in Google Meet Discussions
- [New] Exploring the Boundaries 64/128GB for Vids
- [New] In 2024, Enhance Team Engagement with Microsoft Teams' Snap Camera Feature
- [New] Insights Into Instagram's Selfie Verification for 2024
- [Updated] 2024 Approved SocialSnatcher HD Extractor
- [Updated] Advanced HD Screen Capture Gadgets for 2024
- [Updated] Awesome Free Webcam Games for Computer for 2024
- [Updated] Effortless Integration of Xbox and Facebook Streams
- [Updated] FB Video Conversion Wizardry – Turning HD to High-Quality MP4, For Free for 2024
- [Updated] In 2024, Flip the Script How to Turn Your Instagram Visuals Into Viral Stars
- [Updated] Recipe Reels Reimagined The Top 7 Edible Videography Secrets
- [Updated] Simplified Guide FB Video to MP3 Audio Transformations for 2024
- 2024 Approved NativeScreenVid Chrome OS Recording Tool
- 2024 Approved Screen Selection Simplified UltraWide Versus UHD 4K Demystified
- A Comprehensive Guide to Hyper-V Installation in Win 11 Home
- Achieve Operational Optimization: Top Windows PCT Strategies
- Adapting the Oculus Quest 2 for Windows OS Virtual Reality
- Copyright Definitions & Implications in Music for 2024
- Correcting XC0000142 Issue in Windows 11, 10
- Cutting-Edge Windows Gadgets - 2024'S Must-Haves List
- Dealing with Misentered Characters in Windows OS
- Demystifying Your Global IP on WIN OS via CLI
- Effortless Setup: How to Update Your Microsoft Ergo Keyboard Drivers
- Elevating Your Gameplay: Overcoming Lags in Warfare
- Enhance PC Sounds with Windows 11'S Mixer Feature
- Enhancing Reliability of Your Windows Interface
- Guide: Controlling Windows 11’S Content Filter
- Guide: How to Deactivate AMD/Nvidia VR Boosting
- How to Change Spotify Location After Moving to Another Country On Motorola Moto G73 5G | Dr.fone
- How to Change Your Infinix Note 30 VIP Location on life360 Without Anyone Knowing? | Dr.fone
- How to sign .doc file free
- How To Unbrick a Dead Tecno Pova 5 | Dr.fone
- In 2024, Best 3D Blu-Ray Players
- In 2024, Expert Tips for Navigating YouTube's Comprehensive Comments Section
- In 2024, Hassle-Free Ways to Remove FRP Lock on Meizu Phones with/without a PC
- In 2024, Pro Tips for Captivating VR Videos Top 9 Strategies
- Mastering File Restoration: Top 8 Techniques for Windows
- Mastering Files: 6 Methods to Retrieve Windows 11 Paths
- Mastering Internet Connection: League of Legends on Windows
- Mastering the Art of Fixing Windows 11'S 5GHz Connectivity
- Mastery of Device ID Extraction Techniques for Windows Users
- Mending Freeze Flaws in Adobe's PC Artist Suite
- Microsoft's Surface Studio 2 - A Step Towards Perfection?
- Navigating Nitpicking Colors: 8 Tips for a Neutral Desktop
- Navigating Windows 11'S 'S Mode': Is It Worth Considering?
- Overcoming Windows Pen-Pad Glitches
- PrtScn & Snipping Tool Link in Windows 11: Prevent Connection
- Quick Setup: Google Play on Windows 11
- Recover Hidden 5GHz Link in Windows 11 Using These Fixes
- Remedying 'Could Not Create VM' Problems in Microsoft OS
- Resuscitate Stalled Excel Performance in Windows Environment
- Simple and Effective Ways to Change Your Country on YouTube App Of your Realme 12 Pro+ 5G | Dr.fone
- Simplifying Language Input: Change Keyboard Layouts in Win 11
- Step-by-Step Guide to Extending Windows 10/11 Contextual Commands
- Steps to Solve Missing DLL: Rockalldll.dll Error
- Streamlining Windows Update Fixes for Error 0X800736CC
- Tasker's Edge Enigma: Hidden Processes?
- The Essential Quartet of Social Media: Understanding Facebook, Twitter, Instagram & YouTube
- The Ultimate Print Guide to Making Your PowerPoint Shine on a Windows System
- Unlocking Battle.net Accessibility on 10/11 Systems
- Unlocking Windows 11'S Printer Interface (Max 48 Chars)
- Unplugged No More: Six Methods to Restore Functioning Network Hardware on Your PC
- Updated 2024 Approved Authors Recommended The Best Text Voice Generators for All Platforms
- Utilizing Windows Widgets for Real-Time Resource Tracking
- Win 11 and Discord: Fixing The Deadly JS Error Quickly
- Title: Cut Down Clutter: How to Set Up AutoFileDeletion on WINOS
- Author: Joseph
- Created at : 2024-08-08 05:58:13
- Updated at : 2024-08-09 05:58:13
- Link: https://windows11.techidaily.com/cut-down-clutter-how-to-set-up-autofiledeletion-on-winos/
- License: This work is licensed under CC BY-NC-SA 4.0.