Tech News Today
  • Hardware
    • Motherboards
    • CPUs
    • Graphic Cards
    • RAM
    • SSDs
    • Computer Cases
    • Monitors
    • Peripherals
    • Power Supply Unit
    • PC Builds
    • Computer Tips
  • Software
  • Operating System
    • Windows
    • Mac
  • Gaming
  • Mobile
  • Console
  • More
    • Internet
    • Networking
    • Security
    • Buyer’s Guide
    • Gadgets
    • Laptops
    • Reviews
    • How To
    • News
Facebook Twitter Instagram
Tech News Today
  • Hardware
    • Motherboards
    • CPUs
    • Graphic Cards
    • RAM
    • SSDs
    • Computer Cases
    • Monitors
    • Peripherals
    • Power Supply Unit
    • PC Builds
    • Computer Tips
  • Software
  • Operating System
    • Windows
    • Mac
  • Gaming
  • Mobile
  • Console
  • More
    • Internet
    • Networking
    • Security
    • Buyer’s Guide
    • Gadgets
    • Laptops
    • Reviews
    • How To
    • News
Tech News Today
Home»Windows»How to Delete Temporary Files

How to Delete Temporary Files

jabinBy jabinApril 12, 2022
how-to-delete-temporary-files1

Is your storage space running low? Or is your system slowing down for no reason? 

Well, temporary files could be the major cause behind this issue. They can accumulate over time and hog up the storage space slowing down the performance of the system.

So, without further ado let’s learn how to delete temporary files and find out why deleting them is a good idea.

What Are Temporary Files?

Temporary files are the files that are created usually by applications and stored temporarily in a folder known as temp folder. They get deleted automatically as soon as you close the application.

However, these files are constantly being created by various applications and occupy a significant amount of your storage space.

How to Delete Temporary Files

Since the temporary files are mainly stored in the temp folder, you can manually delete their contents. However, there are several ways to do it.

From using disk cleanup to using a BAT file, here are the multiple ways you can delete temporary files.

Using Disk Cleanup

Disk cleanup is a utility program that is used to free up storage space. You can use this tool to easily delete temporary files. Here’s how you can use it.

  1. Press the Windows + R key and type cleanmgr to launch the Disk cleanup.
  2. Under the Drives field, expand the dropdown and select a disk to perform the cleanup.
    Disk-Cleanup
  3. Click on OK.
  4. Wait for the scan to complete.
  5. Under the Files to delete field, click to check the checkbox that you want to delete.
    DC-Files-to-delete
  6. Click on OK.
  7. Repeat the above steps to perform cleanup for other drives.

Delete the Temp Folder Contents

The temporary files are generally stored in the temp folder in Windows. Hence, you can delete the content inside that folder. Here’s how you can do it.

  1. Press the Windows + R key and type %temp%.
  2. Press Enter.
  3. Select all of the temp folder contents. You can use Ctrl + A keyboard shortcut to do it quickly.
    delete-temp-files
  4. Press the Delete key.
  5. On Desktop, find Recycle bin. Right-click on it and select Empty Recycle Bin to delete them permanently.

Alternatively, you can use the shortcut key Shift + Delete to delete them permanently.

Using the Settings App

You can easily remove temporary files in Windows using the Settings app. Here’s how you do it.

  1. Press the Windows + I key to open the Settings app.
  2. Navigate to System > Storage.
  3. On the right pane, click on Temporary files.
    Storage-temporary-files
  4. Wait for the scan to finish.
  5. Click on every checkbox next to the files you want to remove and click the Remove files button.

Use the Storage Sense Feature

Windows has a special feature called Storage Sense that helps to remove temporary files. You can even configure it to run automatically on specific days or weeks or even when your hard disk runs low on storage.

Here’s how you can enable it in the Settings app.

  1. Press the Windows + I key to open the Settings app.
  2. Under the Storage section and below the text, Storage Sense can automatically free up space by getting rid of files you don’t need, like temporary files and content in your recycle bin; toggle the button to On.Storage-sense
  3. Additionally, you can go to Configure Storage Sense or run it now to change its settings according to your preferences.

Using a BAT File

You can execute a BAT file to automatically delete temporary files. However, you need to create one and type some commands inside it. To create this file,

  1. Right-click and select New > Text Document.
  2. Enter the command rd %temp% /s /q.
  3. Click on File > Save as. You can give any name to this text file.
  4. Add the .bat extension at the end of the file name.
    Bat-file-temporary
  5. Also, set the Save as type to All Files option.
  6. Click on the Save button.

Double-click the bat file whenever you want to delete the temporary files and they will be deleted automatically.

Delete the Prefetch Folder Contents

Prefetch is a memory management feature that keeps track of applications that you use most frequently in a log file. You can delete the content inside the Prefetch folder to clear the temporary files from your system. Here’s how you can remove them.

  1. Press the Windows + R key and type prefetch.
  2. Select all of the Prefetch folder contents. You can use Ctrl + A keyboard shortcut to do it quickly.
    Prefetch
  3. Press the Delete key and right-click on the Recycle bin, and select Empty Recycle Bin to delete them permanently.

Clear the Browser Cache

Browsers create a cache of images and other files of the frequently visited sites so that they can load the website quickly. However, if you extensively use the browser in your day to day use then the cache files can pile up very quickly. Here’s how you can easily clear browser cache and restore your storage space.

On Chrome

  1. Click on the three dots at the top-right corner of the window.
  2. Hover the cursor on More tools and click on the Clear browsing data option.
  3. Click on the checkbox next to Browsing history, Cookies and other site data, and Cached images and files.Chrome-browsing-history
  4. Choose the All-time option in the Time range dropdown if you feel comfortable.

On Firefox

  1. Click on the hamburger icon at the top-right corner of the window.
  2. Click on the Settings option.
  3. On the left sidebar, click on Privacy & Security.
  4. Scroll down to the Cookies and Site Data section and click on the Clear Data button to clear all the cookies and site data.Cookies-and-site-data-Firefox
  5. Also, scroll down to the History section and click on the Clear History button to clear all your history.

On Safari Browser

  1. Open the safari browser.
  2. On the top menu, click on Safari and then Preferences.
  3. Click on Privacy.
  4. Click on Manage Website data.
    privacy-manage-website-data
  5. Now, click on Remove Now.
    click-on-remove-now

How to Delete Temporary Files on Mac

You can easily delete temporary files on Mac too. Here’s how you can do it.

  1. Click on the Go menu at the top of the desktop screen.
  2. Select the Go to folder option and type ~/Library/Caches on the search bar.library-cache
  3. Click on Ok
  4. Select all the items inside the folder.
    clear-cache-on-mac
  5. Right-click and select the Delete immediately option.

You can also follow our comprehensive guide on how to clear cache on iPhone and iPod.

Frequently Asked Questions

How Often Should I Clear the Temporary Files?

There is no hard and fast rule and time to clear the temporary files. It completely depends upon your preference. However, a good rule of thumb is to delete them every once in a while.

Is It Safe to Delete Temporary Files?

It’s perfectly safe to delete the temporary files as it contains only the data stored by the applications for temporary use. And, it doesn’t include any crucial system files.

Furthermore, sometimes when a program is being installed, it can store something it needs to complete the installation after a reboot. So, it is recommended to only delete those files after the program installation has been completed.

how-to
jabin

Hello there! I'm an IT graduate familiar with troubleshooting for Windows, Android, iPhone, and several other devices. I love to help people with thorough how-to guides and interesting tips & tricks. When I'm not writing, I love to watch movies, especially the thriller ones.

Related Posts

sfc-scannow-not-working

How to Fix SFC Scannow Not Working in Windows 11

June 16, 2022
how to unzip files on windows 11

How to Unzip Files on Windows 11?

June 16, 2022
windows 11 skip microsoft account

How to Set Up Windows 11 Without a Microsoft Account

June 16, 2022
snip_and_sketch_not_working

Snip and Sketch Not Working? Try These Fixes

June 15, 2022
how-to-close-laptop-and-use-external-monitor-on-windows-11

How to Close Laptop and Use External Monitor on Windows 11

June 14, 2022
windows 11 show more options

How to Disable ‘Show More Options’ in Windows 11

June 13, 2022
Add A Comment

Leave A Reply Cancel Reply

Latest Posts
best-pinball-games

8 Best Pinball Games of All Time

June 16, 2022
how-to-connect-power-supply-to-the-motherboard

How to Connect Power Supply to Motherboard

June 16, 2022
best sim racing games

Best Sim Racing Games of All Time

June 16, 2022
You may also like
messenger_notifications_not_working

How to Fix if Messenger Notifications Not Working

June 16, 2022
slack_notifications_not_working

Slack Notifications Not Working? Here’s How to Fix

June 16, 2022
exercise ring not working

Apple Watch Exercise Ring Not Working? Here’s How to Fix

June 16, 2022
Recommended
Cookie Clicker Garden Guide

Cookie Clicker Garden Guide to Unlocking Every Seed

September 26, 2021
monitor no signal

Computer Turns On But Monitor Says No Signal (9 Ways To Fix)

October 25, 2021
Facebook Twitter Pinterest
  • Home
  • About Us
  • Privacy Policy
  • Affiliate Disclosure
© 2022 TechNewsToday.

Type above and press Enter to search. Press Esc to cancel.