Table of Contents
Using Storage Sense
With Microsoft PC Manager
Using Command Prompt
Home System Tutorial Windows Series 3 Easy Ways to Find and Delete Old Files on Windows 11

3 Easy Ways to Find and Delete Old Files on Windows 11

Jun 19, 2024 am 09:40 AM

If you’re running out of storage on your PC, the best thing to do is to find and remove old, unwanted files. Windows 11 offers multiple ways to find those storage-hogging items, and we’ll show you what those ways are and how to use them in this guide.

Using Storage Sense

Storage Sense is a built-in Windows 11 feature that helps automatically clean up old files. You can configure various options in the feature so it only deletes the files using the specified criteria. You can run the feature manually, or you can set it to run automatically at the specified time.

To configure this feature, launch the Settings app by pressing Windows+i. From the left sidebar, select "System." On the right pane, choose "Storage."

3 Easy Ways to Find and Delete Old Files on Windows 11

In the Storage Management section, turn on the toggle next to "Storage Sense," then click "Storage Sense."

3 Easy Ways to Find and Delete Old Files on Windows 11

You’ll now configure Storage Sense's behavior. At the top, enable the option in the "Cleanup of Temporary Files" section so that temporary files are automatically deleted.

Turn on the "Automatic User Content Cleanup" toggle. Then, configure various options as follows:

  • Run Storage Sense: Choose when the feature automatically runs. Your options are Every Day, Every Week, Every Month, and During Low Free Disk Space.
  • Delete Files in My Recycle Bin if They Have Been There For Over: Choose Never, 1 Day, 14 Days, 30 Days, or 60 Days.
  • Delete Files in My Downloads Folder if They Haven’t Been Opened For More Than: Select Never, 1 Day, 14 Days, 30 Days, or 60 Days. 3 Easy Ways to Find and Delete Old Files on Windows 11

    To run the feature now, click "Run Storage Sense Now." It will start removing the chosen files.

    With Microsoft PC Manager

    PC Manager is a built-in Windows 11 app that lets you analyze your storage space and remove downloaded files, large files, and duplicate files. It has a variety of filters that let you quickly find the files you want to let go of.

    To use the app, open Windows Search, type PC Manager, and choose the app in the search results. When it opens, from the left sidebar, select "Storage." On the right pane, in the Files Cleanup section, you’ll see various options.

    3 Easy Ways to Find and Delete Old Files on Windows 11

    The first option is "Downloaded Files," which lets you remove the files you’ve downloaded using the installed web browsers. Click it, and it’ll open a window listing your recent file downloads. You can sort these files by their type using the tabs at the top.

    Then, select the files you’re happy to let go of. At the bottom, you’ll see the storage space you’ll reclaim after deleting these files. To remove the files, click "Permanently Delete."

    3 Easy Ways to Find and Delete Old Files on Windows 11

    The second option in PC Manager is "Large Files." As you can guess, it lets you find and remove large files. You can specify the file size here so it only finds files larger than that.

    Click the option and use the "Size" drop-down menu to specify your file size.

    3 Easy Ways to Find and Delete Old Files on Windows 11

    When you see the files listed, choose the ones you want to remove and click "Permanently Delete."

    3 Easy Ways to Find and Delete Old Files on Windows 11

    And that’s it.

    Another useful option is "Duplicate Files." This option finds the duplicates on your storage and helps you remove them all at once. Use it by clicking the option, letting the feature find any duplicates, choosing the files you want to remove, and clicking "Permanently Delete."

    3 Easy Ways to Find and Delete Old Files on Windows 11

    And you’re all set.

    Using Command Prompt

    If you prefer Command Prompt, use the ForFiles command to automatically find and delete files older than the specified number of days from select locations. You can run the command each time you want to clean up your storage.

    To use it, open Windows Search, search for Command Prompt, and select "Run as Administrator."

    3 Easy Ways to Find and Delete Old Files on Windows 11

    In the User Account Control prompt, choose "Yes."

    In Command Prompt, type the following command. Replace "FolderPath" with the full path to the folder where you want to delete files. Replace "60" with the number of days a file must have existed on your storage for it to be deleted. (Make sure to keep the - (minus sign) before the day number.)

    <code class="hljs xml">ForFiles /p "FolderPath" /s /d -60 /c "cmd /c del /q @file"</code> 
    Copy after login

    Here’s what each parameter does in this command:

    • ForFiles: This is the command that retrieves files using the specified criteria.
    • p: This parameter tells the command to search files in the given directory.
    • FolderPath: This is the full path to the folder where you want to delete files.
    • s: This parameter ensures the files inside the subdirectories of the specified folder are deleted.
    • d: This parameter sets the date filter, which is followed by the number of days.
    • c: This parameter runs the command given next to it.

      Note that Command Prompt will delete your files quietly, meaning it won’t ask for a confirmation. And that’s it.

      If you want to use this command multiple times, instead of typing it each time, turn it into a batch script. This way, you simply run a file to execute the command and delete the specified files.

      To do that, open Notepad, copy and paste your ForFiles command, and select File > Save As. Click the "Save as Type" drop-down menu and choose "All Files." Select the "File Name" field, type a name for your script, add .bat at the end of the name, and click "Save."

      3 Easy Ways to Find and Delete Old Files on Windows 11

      When you want to run your command, right-click your batch script and choose "Run as Administrator."

      3 Easy Ways to Find and Delete Old Files on Windows 11

      You can integrate this batch script with Task Manager, and Task Manager will run the script at your specified time. This basically automates the entire process of finding and removing old files from your specified folders.


      And that’s how you get rid of the files sitting on your Windows 11 machine for too long. Enjoy using a decluttered computer!

The above is the detailed content of 3 Easy Ways to Find and Delete Old Files on Windows 11. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Hot Topics

Java Tutorial
1664
14
PHP Tutorial
1266
29
C# Tutorial
1239
24
Windows kb5054979 update information Update content list Windows kb5054979 update information Update content list Apr 15, 2025 pm 05:36 PM

KB5054979 is a cumulative security update released on March 27, 2025, for Windows 11 version 24H2. It targets .NET Framework versions 3.5 and 4.8.1, enhancing security and overall stability. Notably, the update addresses an issue with file and directory operations on UNC shares using System.IO APIs. Two installation methods are provided: one through Windows Settings by checking for updates under Windows Update, and the other via a manual download from the Microsoft Update Catalog.

Nanoleaf Wants to Change How You Charge Your Tech Nanoleaf Wants to Change How You Charge Your Tech Apr 17, 2025 am 01:03 AM

Nanoleaf's Pegboard Desk Dock: A Stylish and Functional Desk Organizer Tired of the same old charging setup? Nanoleaf's new Pegboard Desk Dock offers a stylish and functional alternative. This multifunctional desk accessory boasts 32 full-color RGB

Got an AMD CPU and Aren't Using PBO? You're Missing Out Got an AMD CPU and Aren't Using PBO? You're Missing Out Apr 12, 2025 pm 09:02 PM

Unlocking Ryzen's Potential: A Simple Guide to Precision Boost Overdrive (PBO) Overclocking your new PC can seem daunting. While performance gains might feel elusive, leaving potential untapped is even less appealing. Fortunately, AMD Ryzen processo

How to Use Windows 11 as a Bluetooth Audio Receiver How to Use Windows 11 as a Bluetooth Audio Receiver Apr 15, 2025 am 03:01 AM

Turn your Windows 11 PC into a Bluetooth speaker and enjoy your favorite music from your phone! This guide shows you how to easily connect your iPhone or Android device to your computer for audio playback. Step 1: Pair Your Bluetooth Device First, pa

ASUS' ROG Zephyrus G14 OLED Gaming Laptop Is $300 Off ASUS' ROG Zephyrus G14 OLED Gaming Laptop Is $300 Off Apr 16, 2025 am 03:01 AM

ASUS ROG Zephyrus G14 Esports Laptop Special Offer! Buy ASUS ROG Zephyrus G14 Esports Laptop now and enjoy a $300 offer! Original price is $1999, current price is only $1699! Enjoy immersive gaming experience anytime, anywhere, or use it as a reliable portable workstation. Best Buy currently offers offers on this 2024 14-inch ASUS ROG Zephyrus G14 e-sports laptop. Its powerful configuration and performance are impressive. This ASUS ROG Zephyrus G14 e-sports laptop costs 16 on Best Buy

5 Hidden Windows Features You Should Be Using 5 Hidden Windows Features You Should Be Using Apr 16, 2025 am 12:57 AM

Unlock Hidden Windows Features for a Smoother Experience! Discover surprisingly useful Windows functionalities that can significantly enhance your computing experience. Even seasoned Windows users might find some new tricks here. Dynamic Lock: Auto

You Can Get The Razer Basilisk V3 Pro Mouse for 39% off You Can Get The Razer Basilisk V3 Pro Mouse for 39% off Apr 09, 2025 am 03:01 AM

##### Razer Basilisk V3 Pro: High-performance wireless gaming mouse The Razer Basilisk V3 Pro is a high-performance wireless gaming mouse with high customization (11 programmable buttons, Chroma RGB) and versatile connectivity. It has excellent sensors, durable switches and extra long battery life. If you are a gamer looking for a high-quality wireless mouse and need excellent customization options, now is a great time to buy the Razer Basilisk V3 Pro. The promotion cuts prices by 39% and has limited promotion periods. This mouse is larger, 5.11 inches long and 2 inches wide

Microsoft Might Finally Fix Windows 11's Start Menu Microsoft Might Finally Fix Windows 11's Start Menu Apr 10, 2025 pm 12:07 PM

Windows 11's Start Menu Gets a Much-Needed Overhaul Microsoft's Windows 11 Start menu, initially criticized for its less-than-intuitive app access, is undergoing a significant redesign. Early testing reveals a vastly improved user experience. The up

See all articles