Raih keuntungan sebanyak mungkin di Daftar Situs Slot Gacor Hari Ini Sering Jackpot Terbesar kami.

Yuk buruan main Daftar Situs Judi Slot Terbaik Dan Terpercaya No 1 Terpercaya dan menangkan jackpot slot terbesar dari kami.

Selamat saat ini anda sudah berhasil menjadi member resmi slot online Indonesia. Anda bisa memilih permainan di Situs Slot Online Gampang Menang apa saja yang anda sukai. Setelah itu barulah anda masuk ke permainan dan bisa memenangkan jackpot terbesar pada permainan judi slot online resmi.

How to delete files older than X days in Windows 11/10 - Upgraded Tamilan
How to delete files older than X days in Windows 11/10

How to delete files older than X days in Windows 11/10


If you want to delete files older than X days in Windows 11 and Windows 10, here is how you can do it. You can delete all files older than a certain number of days from your computer using Storage Sense and the ForFiles command. In this post, we will show you how to delete files older than X days (say 7, 10, 30, etc. days) using Storage Sense or ForFiles command line in Windows 11/10.

As already mentioned, there are two main ways to delete files older than X days in Windows 11/10: using Storage Sense and the ForFiles command. Both methods have some advantages and disadvantages. For example, you can only run Storage Sense at a set time. On the other hand, you can run the ForFiles command at any interval.

How to delete files older than X days using Storage Sense

To delete files older than X days in Windows 11/10 using Storage Sense, follow these steps:

  1. press Win+Me to open Windows Settings.
  2. go to System > Storage > Storage Sense.
  3. Toggle Automatic cleaning of user content button.
  4. Expand Start memory monitor menu and select an option.
  5. Press Start memory monitor now a button.

To learn more about these steps, keep reading.

First press Win+I to open Windows settings and navigate to System > Storage > Storage Sense. Then switch Automatic User Content Cleanup button to turn it on.

Next, you need to select an option from the list Run Storage Sense list.

It is recommended to choose a time that suits your needs. For information, you can choose Every day, Every weekas well as Every month.

After that you can click the button Run Storage Sense now button.

It will delete all files older than the selected time.

However, the problem with Storage Sense is that you cannot select any specific folder. Let’s say you want to delete files older than 30 days from only one folder or one drive. In some situations, you can use the ForFiles command.

How to delete files older than X days using command line

To delete files older than X days in Windows 11/10, follow these steps:

  1. Search command in the search box on the taskbar.
  2. Press run like administrator option.
  3. Click Yes.
  4. Enter the following command: ForFiles /p “folder-path” /s /d -30 /c “cmd /c del /q @file”

Let’s take a look at these steps in detail.

To get started, you need to open a command prompt with administrator privileges. For this, look for cmd in the search box on the taskbar, click the icon Run as administrator option and click Yes button.

Then enter this command:

ForFiles /p "folder-path" /s /d -30 /c "cmd /c del /q @file"

Don’t forget to replace folder-path with the original path to the folder and /d-30 the time you want. If you want to delete files older than 100 days, type /d -100.

How to delete files older than X days in Windows 11/10

Once you do this, all files older than the predefined days will be deleted immediately and permanently.

FYI, you can schedule a ForFiles command. However, you can automatically delete files older than X days on Windows 11/10 using Task Scheduler. However, when you create a batch file, you must enter this command:

ForFiles /p "folder-path" /s /d -30 /c "cmd /c del /q @file"

How to automatically delete files older than x days?

To automatically delete files older than X days on Windows 11/10, you can follow the instructions above. You can use Storage Sense to do this job. However, if you need flexibility, you can choose the ForFiles command. You don’t need third party apps anyway.

How to delete files older than 10 days?

To delete files older than 10 days in Windows 11 or Windows 10, you can use the ForFiles command. First, open a command prompt with administrator privileges. Then enter the following command: ForFiles /p “folder path” /s /d -10 /c “cmd /c del /q @file”. It will delete all files older than 10 days.

This is all! Hope this guide helped.

How to delete files older than X days in Windows 11/10



Source link

windows789.com