How ToWindows

How to Automatically Delete Old Files on Windows 11/10

These days on every device you will find an old file and they will take storage of your device. We have three ways to automatically delete old files on Windows 11/10. Many Windows users don’t know to delete old files automatically but don’t worry we are here to help you to automatically delete old files on Windows 11 computers. So, Keep reading this article till the end to learn How to Automatically Delete Old Files on Windows 11/10.

Using settings, the Microsoft PC Manager app, and Task scheduler we will delete old files on Windows 11 computer. Like every technology, auto-deleting files also has its advantages and also have disadvantages. Once the files are deleted and then it can be challenging or impossible to recover the file again. When you delete your old pics from your computer then your computer will get storage and work very fast.

Method 1. Set up Storage Sense to Delete Old Files on Windows 11 Automatically

1. Turn on your Windows 11 computer and then open the Settings app.

2. When the setting is open go to the System tab and click on the Storage option.

Click on the Storage

3. Click on Storage Sense.

Click on Storage Sense

4. Now, Turn on the Storage Sense option.

Turn on Storage Sense

5. Click on the Drop-down icon from the Run Storage Sense option and select your desired repetition cycle.

select your desired repetition cycle

Method 2. Utilize the Microsoft PC Manager App

1. Open your Microsoft Store and search Microsoft PC Manager click on Get.

Click on the Get

2. When it is installed open it.

3. Click on the Settings tab in the left sidebar and turn on Smart Boost to automatically boost your PC with the PC Manager app.

Turn on Smart Boost

Method 3. Create a Schedule to Delete Old Files on Windows 11 Automatically

1. Turn on your computer open the Start menu search the Task Scheduler and click on Run as administrator.

Click on Run as administrator

2. Right-click on Task Scheduler Library and click on the New Folder option.

Click on New Folder

3. Name the folder as Delete Old Files and click on OK.

Click on OK

4. Now, Right click on the Created folder and then click on Create a Task.

Click on Create a Task

5. Give a name and enable Run whether the user is logged on or not with the Do Not Store Password option and click on OK.

Automatically Delete Old Files on Windows 11/10
Enable it

6. Go to the Triggers tab and then click on New.

Click on New

7. Now, Select your preferred schedule to run the task and click on the OK.

Automatically Delete Old Files on Windows 11/10
Click on the OK

8. Go to the Action tab and click on the New option.

Automatically Delete Old Files on Windows 11/10
Click on New

9. Set the Program or script to ForFiles paste the following Argument and then click on the OK button.

ForFiles /p “old file path”/s /d -30 /c “cmd /c del /q @file”

Automatically Delete Old Files on Windows 11/10
Click on OK

10. Go to the Setting tab and enable Run task as soon as possible after a scheduled start is missed and If the task fails, restart every.

Automatically Delete Old Files on Windows 11/10
Enable If the task fails, restart every

Method 4. Make Use of the Windows PowerShell

1. Open the Start menu search Windows PowerShell and click on Run as administrator.

Click on the Run as administrator

2. Copy and paste the following command and then press Enter.

Get-ChildItem –Path “C:\Users\paras\Downloads\New folder” -Recurse | Where-Object {($_.LastWriteTime -lt (Get-Date).AddDays(-30))} | Remove-Item

Press Enter

Bottom Line:

In this article, we showed you How to Automatically Delete Old Files on Windows 11/10. There are all about How to Automatically Delete Old Files on Windows 11/10. Step by step we will show you to Automatically Delete Old Files on Windows 11/10. So, I hope you have got your solution to your problem. If you have any kind of questions or suggestions then do tell us in the comment section.

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button