What you can delete and what stays behind
You can delete your browser history, search history, cached files, and temporary downloads from your computer in minutes. Most operating systems and web browsers have built-in tools to do this without special software. However, understand that deleting history from your computer does not erase it from your internet service provider's records or from the websites you visited — those organisations keep their own logs regardless of what you delete locally.
The files you delete are also not truly gone until they are overwritten by new data. If someone has physical access to your computer and uses recovery software, deleted files can sometimes be retrieved. If you need permanent deletion, you will need a dedicated tool designed to overwrite the space where files were stored.
Start with the easiest and most common deletions: your web browser history, cookies, and cached images. These are the files that slow down your computer and reveal what you have been searching for and visiting.
Key Takeaways
- Browser history, cookies, and cached files can be deleted in seconds through your browser settings — Chrome, Firefox, Safari, and Edge all have a "Clear browsing data" or "Clear history" option.
- Windows computers store temporary files in the Temp folder and can be cleared through Disk Cleanup or by deleting the folder manually; Mac users can use the Storage settings in System Preferences.
- Deleting files on your computer does not remove them from your internet service provider's records or from the servers of websites you visited.
- Deleted files can be recovered with special software unless you use a tool that overwrites the space where they were stored.
- Search history in Windows Search and Spotlight on Mac can be cleared separately from web browser history.
Clear your web browser history in Chrome, Firefox, Safari, and Edge
Open your browser and use the keyboard shortcut Ctrl + H (Windows) or Command + Y (Mac) to open your history. In the left sidebar or menu, look for "Clear browsing data" or "Delete history". A window will appear asking what time period you want to clear — choose "All time" if you want to remove everything.
Select the checkboxes next to "Browsing history", "Cookies and other site data", and "Cached images and files". Leave other options unchecked unless you want to delete saved passwords or autofill information. Click the button to clear (it may say "Clear data", "Clear history", or "Delete"). The process takes seconds.
If you use multiple browsers, repeat this step in each one. Many people use Chrome for work and Firefox for personal browsing, so history in one browser does not affect the other.
Delete temporary files and cache on Windows
Windows stores temporary files in a folder called Temp that takes up disk space and can contain traces of what you have downloaded and installed. Open File Explorer and type %temp% in the address bar at the top, then press Enter. A folder will open containing temporary files.
Select all files in this folder using Ctrl + A, then press Delete. Windows may tell you that some files are in use and cannot be deleted — this is normal. Click "Skip" for those files and delete the rest. Close the folder when done.
Alternatively, use Disk Cleanup, which is built into Windows. Press the Windows key, type "Disk Cleanup", and open it. Select your main drive (usually C:), then check the boxes next to "Temporary files", "Recycle Bin", and "Temporary internet files". Click "Clean up system files" and confirm. This method is safer because it avoids files that are currently in use.
Delete temporary files and cache on Mac
Mac does not have a built-in Disk Cleanup tool like Windows, but you can clear cache through System Preferences. Open System Preferences, click "General", then click "Storage". Mac will show you a breakdown of what is using space on your drive. Click "Manage" to see options for removing old files, language files you do not use, and duplicate downloads.
You can also delete cache files manually. Open Finder, press Command + Shift + G to open "Go to Folder", and type ~/Library/Caches. This folder contains cached data from applications and websites. You can delete individual cache folders or select all and delete them. Applications will rebuild their cache the next time you use them, so this is safe.
Clear search history in Windows and Mac
Windows Search keeps a record of everything you have searched for on your computer. Open Settings, go to "Privacy & Security", then "Search permissions". Click "Searching Windows" and toggle off "Cloud search history" if you do not want Microsoft storing your searches. To delete past searches, open File Explorer, click the search box, and look for a "Clear search history" option in the dropdown menu.
On Mac, Spotlight search history can be cleared by opening System Preferences, clicking "Siri & Spotlight", and unchecking "Spotlight Suggestions". This prevents Spotlight from learning your search patterns, though it does not delete past searches. To delete the Spotlight index entirely, go to "Security & Privacy", click the lock icon, then add your drive to the "Privacy" tab under "Full Disk Access" — this forces Spotlight to rebuild its index without your old search data.
Permanently delete files so they cannot be recovered
If you need to may support deleted files cannot be recovered with recovery software, you need a tool that overwrites the space where files were stored. On Windows, cipher /w:C: is a built-in command that overwrites free space on your C: drive. Open Command Prompt as administrator, type this command, and let it run — it may take hours on a large drive.
On Mac, use diskutil secureErase freespace 0 /Volumes/DriveName in Terminal, replacing "DriveName" with the name of your drive. This overwrites all free space with zeros, making recovery impossible.
Third-party tools like BleachBit (Windows and Mac, free) and Eraser (Windows, free) automate this process and are easier to use than command-line tools. These programs delete files and then overwrite the space, which is more thorough than straightforward pressing Delete.
What you cannot delete from your computer
Your internet service provider keeps logs of every website you visit, regardless of what you delete on your computer. If your ISP is subpoenaed or hacked, that history can be accessed. Your router also keeps logs of traffic — if you share a network with others, a network administrator can see what sites you visited.
Websites themselves keep server logs showing that you visited and what you did there. Google, Facebook, Amazon, and other major sites store this data in your account. Deleting your browser history does not delete their records. To limit what these companies store, you can delete your account data through their privacy settings, though some data may be retained for legal or business reasons.
Frequently Asked Questions
Does clearing my browser history delete it from Google?
No. Clearing your browser history only removes the record from your computer. Google keeps its own logs of your searches and websites you visited through Google services. To delete that data, sign into your Google account, go to myactivity.google.com, and delete your activity there. You can also turn off Web & App Activity in your Google Account settings to stop Google from recording future activity.
Can I set my browser to automatically delete history when I close it?
Yes. In Chrome, go to Settings, click "Privacy and security", then "Clear cookies and site data when you quit". In Firefox, go to Settings, click "Privacy & History", and set "History" to "Firefox will use custom settings for history". Check "Clear history when Firefox closes". Safari and Edge have similar options in their settings menus.
Will deleting my history speed up my computer?
Slightly. Cached files and temporary downloads take up disk space, and clearing them frees up a small amount. The effect is usually noticeable only if your drive is nearly full. Deleting browser history itself uses almost no space and will not noticeably improve speed.
What is the difference between clearing history and clearing cache?
History is a list of websites you visited. Cache is the images, scripts, and other files those websites stored on your computer to load faster next time. Clearing cache frees up more disk space, while clearing history removes the record of where you have been. Both are usually cleared together.
If I delete files, can the police recover them?
Yes, if you only press Delete. Deleted files remain on your drive until they are overwritten. Law enforcement and forensic specialists have tools to recover them. Only overwriting the space with a find erase tool makes recovery extremely difficult or impossible.