How to Remove Junk Files for Free on Windows PC?

In this post, you’ll learn how to remove junk files for free on Windows computer with system built-in tools and free third-party PC cleaner.

Lucas

By Lucas / Updated on July 10, 2025

Share this: instagram reddit

Junk files are temporary files produced on your computer to execute particular activities but are no longer required. These files were once sound since applications, apps, and operating systems were needed to generate temporary files for computing activities. However, after they have served their role, these files become obsolete.

Main types of junk files on Windows PC

We use our computers for a range of functions, such as site surfing, document opening, and photo viewing. Computers employ temporary files to conduct all of these activities, which become obsolete as the task is completed. These garbage files will gather on your hard disk and will not be deleted by the system, causing issues. All of those files consume a significant amount of storage space, causing your storage to fill up and your PC to become slower or encounter other performance difficulties.

Start with the typical suspects for removing trash files. The following are the most typical forms of trash files found on computers:

• Temporary Internet Files
• Temporary System Files
• Installer files
• Thumbnails
• Files in Recycle Bin

Junk files are formed as the result of many computing processes, and they quickly accumulate. If you let trash files accumulate, your computer's performance will suffer, and you'll have difficulty determining what to keep or delete.

4 ways to remove junk files for free

It’s totally safe to delete junk files from your PC. Here, we’ll show you some methods to remove junk files via Windows built-in tools and a free third-party tool.

Way 1. Using CMD to remove junk files

You can use CMD orders to remove part of junk files.

Step 1. Type "cmd" in the Windows search bar, right-click on Command Prompt, and select "Run as administrator".

Step 2. Type “%SystemRoot%\explorer.exe %temp%\” and hit "Enter" to view temp files on your computer.

Step 3. Type “del %temp%\*.*/s/q” and press "Enter" to run the command. Then, Command Prompt will delete all temporary files except those currently in use.

CMD clean junk files

Way 2. Using Run to delete junk files

Step 1. Press “Windows” + “R” together to open Run box, and type “temp” and press “OK”.

Run temp

Step 2. It leads you to the temp files location in Windows 10. Press the "Ctrl + A" keys to select the files and hit the "Delete" button.

Temp windows

Step 3. Open the Run command once again, type "%temp%" and click "OK".

%temp%

Step 4. It takes you to the Local Temp files location. Press "Ctrl + A" to select all the files and hit the "Delete" key.

local temp

Step 5. Once again, open the Run command, and this time, type "prefetch" and move on.

Prefetch

Step 6. It guides you to the Prefetch files' location. Press the "Ctrl + A" keys together and press the "Delete" button.

Prefetch folder

Way 3. Using Disk Cleanup to clear junk files

Disk Cleanup assists users to remove all forms of trash files such as Temporary files, Thumbnails, and so on. In this program, you can see how much space these garbage files take up and how much space you can save up.

Step 1. Type "disk cleanup" in the search box, and hit "Enter".

Step 2. In the Disk Cleanup, select C drive (or other drives you want to clean) and click "OK".

Step 3. Tick the files you do not need and click "OK" to confirm the operation. And you can click "Clean up system files" to get more free space.

Disk Cleanup

Way 4. Using a free third-party PC cleaner tool to remove junk files

In general, the aforementioned Windows built-in tools can only remove a portion of the junk files on your computer since certain files are system trash files, and these built-in tools will not enable users to delete them directly.

To remove these persistent garbage files from your computer, we recommend using AOMEI Partition Assistant for Cleanup, a handy PC cleaner. It will thoroughly detect all trash files on your hard drives and allow you to easily eliminate them. It works with all editions of Windows 11/10/8/7/XP and a variety of machine brands.

AOMEI Partition Assistant for Cleanup

Free Up Disk Space To Keep Your PC Running Smoothly and Efficiently

Step 1. Initiate Clean Junk Files. Install and launch AOMEI Partition Assistant for Cleanup. Click the "Clean Junk Files" tab.

Clean Junk Files

Step 2. Start scan junk files. Click the "Scan Now" button to start the process of scanning junk files.

Scan Now

Step 3. After the scan process is finished. All system junk files (including recycle bin files, temporary files, log files, invalid shortcuts, and so on) and registry junk files (including DLL registry, system registry, and program registry) will be displayed.

Listed Junk Files

Step 4. You can also click the button behind to view the junk files details.

View Junk Files Details

Step 5. And, you can click the button behind to locate the file.

Locate Junk Files

Step 6. Select junk files to start cleanup. By default, the program will select some junk files to clean up, for example, temporary files, log files, and so on. You can also manually check to select more or uncheck to deselect fewer listed junk files. Or, click "Select All" to select all junk files to clean up if you need to clean up all.

After selecting junk files that are not needed anymore, you can click the "Clean Now"button to start the cleanup.

Clean Now

Step 7. Cleanup completed. The process of the cleanup might take time, and the selected files will be cleaned up. After the process is finished, you will get a cleanup completed window displaying how many files you have cleaned and not yet cleaned.

Clean Completed

Now, all junk files are removed by this handy tool.

▶ Tips:
Delete large filesWhen your disk space is crowded with unused large files, this software enables you to delete them completely and securely.

Ending lines

Now you know how to remove junk files for free, you can regularly clear junk files from PC to keep your computer in a nice status. 

Lucas
Lucas · Staff Editor
I prefer peaceful and quiet life during vacation,but sometimes I watch football match if my favorite club performs brilliantly in that season. And I love reading, painting and calligraphy, thus I send my friends festival handwriting cards every year.