TL;DR
To clean junk files on Mac manually, click Go in the menu bar and select Go to Folder. Then, type the following paths to clear cache, user log files, system log files, and app leftovers:
~/Library/Caches
~/Library/Logs
/var/log
~/Library/Application Support
~/Library/Internet Plug-Ins/
Alternatively, use MacKeeper to quickly clean different types of junk files in one go.
Do you hate seeing that spinning beach ball whenever you open an app on your Mac? Often, too many junk files are the main reason for excessive lag and crashes. They slow down your Mac’s performance, making it take forever to load apps. In this guide, I’m going to share some easy methods I personally use to clean up junk files on my Mac. These tricks will help you regain your Mac’s lost speed and storage space.
Before We Begin
Junk, cache, and leftover files can slow down your Mac. To avoid this and optimize your Mac, download MacKeeper and use its Safe Cleanup feature. It helps identify and clean junk files on Mac, making it run faster and load quicker.
What Are Junk Files on Mac?
Junk files on a Mac are files that are no longer needed or useful and are just taking up space on your computer’s hard drive. They can include temporary files, cache files, log files, and other files that accumulate over time.
Some examples of junk files on a Mac include:
File Type | Description |
---|---|
🗂️ Cache Files | Speed up app operations, include images, scripts, and necessary data. |
📜 Log Files | Track system events and errors, can use excess space with many apps. |
⏳ Temporary Files | Used for tasks like downloads or updates, unnecessary after completion. |
🌐 Unused Language Files | Accompany apps, but extraneous if only one language is used. |
📑 Duplicate Files | Copies of existing files, occupy significant space, especially with large media collections. |
How to Clean Junk Files on Mac
Why You Can Trust MacBook Journal We always conduct first-hand research and verify every method or solution we present, ensuring you receive reliable and effective advice. Learn more about our process.
Now that you know what junk files are and how to identify them, let’s explore some cleaning methods. Below, I’ve shared the automatic and manual methods for deleting junk files on your Mac. All these steps are tested on my MacBook Air M2, 2022.
Method 1: Get Rid of Junk Files on Mac With MacKeeper
If your Mac’s hard drive is cluttered with junk files, I suggest you go for the quickest and most effective way to clean junk files – MacKeeper’s Safe Cleanup. This feature removes unwanted and unnecessary junk files in no more than three clicks and frees up as much space as possible.
Here’s how to use Safe Cleanup to delete junk files and declutter your Mac:
- Download and install MacKeeper on your Mac.
- Now launch MacKeeper and select Safe Cleanup in the left sidebar.
- Click Start Scan.
- From the list of detected items, choose which ones you want to remove from your Mac or click Check All.
- Click Clean Junk Files.
- Wait for MacKeeper to finish cleaning. When it’s done, you’ll get a Cleaning Completed notification. Click Rescan to scan your Mac again.
Method 2: Remove Junk Files Manually
While I usually recommend the ease and security of MacKeeper for cleaning Mac junk files, you can also do it manually. The manual approach offers a bit more control over what gets deleted but you have to be very careful while choosing which files to remove.
Follow these methods to manually clean junk files on Mac and improve its performance.
1. Clear Cache Files
This step involves removing cache files created by apps to enhance their performance. These files can quickly accumulate and take up significant space on your Mac. Clearing them frees up space on your Mac and improves system speed and efficiency.
So, follow these steps to clear cache files on your Mac manually:
- Open Finder, click Go in the menu bar, and select Go to Folder.
- Type in the following path and press Enter:
~/Library/Caches
- Select the cache files you want to delete, or select all cache files. Right-click the selected files and select Move to Bin.
- Right-click the Bin icon in Dock and select Empty Bin to remove junk files from your Mac permanently.
2. Remove User Log Files
User logs keep track of what you do on your Mac, like the apps you use and files you open. Over time, these logs can pile up and take up a lot of space. Deleting them helps clear out old, unnecessary data and makes more room on your Mac.
Here’s how to remove user log files on Mac:
- Open Finder and press Command ⌘ + Shift ⇧ + G.
- Type the following path in the field and press Enter:
~/Library/Logs
- You will see all the user log files. You can move the files manually to the Bin. If you want to declutter your Mac completely, select all the user log files and delete them by right-clicking and selecting Move to Bin.
- Next, right-click the Bin icon in Dock and select Empty Bin.
3. Delete System Log Files
System logs are files your Mac creates to record system events and operations. Like user logs, they can build up over time, taking up space. Now, I know what you’re thinking – “Aren’t these logs important for developers to diagnose errors and issues?” You’re right, but deleting these files won’t harm your device.
So, let’s see how to delete system data on Mac:
- Open Finder, click Go in the menu bar, and select Go to Folder.
- Type in the following path and press Enter:
/var/log
- Select the system log files you want to delete or delete all system log files by dragging them to the Bin.
- Alternatively, you can right-click the selected files and select Move to Bin.
- Don’t forget to empty the Trash on your Mac by right-clicking the Bin icon in Dock and selecting Empty Bin.
4. Remove Localization Files
Many apps on Mac come with multiple language files. But realistically, I only speak and use one language. So, why keep the rest? If you’re like me and use only one language, the other language files are just taking up extra space. Removing these unnecessary language files frees up a good amount of storage on your Mac.
To remove these files, you can follow these steps:
- Open Finder and navigate to the Applications folder.
- Find the app you want to remove language files from. Right-click the app and select Show Package Contents.
- Open the Contents folder and navigate to the Resources folder inside.
- Subfolders that end with lproj are language files containing localization information for specific languages. Each folder is dedicated to a particular language. For instance, the folder en.lproj contains localization files for English.
- Select and delete the language folders you don’t need.
- Then, empty the Bin to completely remove localization files from your Mac.
5. Delete App Leftovers
When you uninstall apps from your Mac, they usually leave leftover files or data. These leftovers take up space and clutter your system. By finding and deleting these remnants, you free up valuable storage and keep your Mac clean and organized.
To remove leftover files from your Mac, follow these steps:
- Open Finder, click Go in the menu bar, and select Go to Folder.
- Paste the following in the empty field one by one:
~/Library/
~/Library/Application Support
~/Library/Application Support/CrashReporter/
~/Library/Caches
~/Library/Internet Plug-Ins/
~/Library/Preferences/
~/Library/Saved Application State/
- Delete the folders and files associated with apps you have uninstalled by sending them to the Bin.
Although the manual method works, it’s time-consuming and runs the risk of deleting essential files. So, I always use MacKeeper to remove leftover files while uninstalling apps. It saves me from accidentally deleting something important.
Here’s how you can use MacKeeper to delete leftovers from your Mac:
- Download and install MacKeeper on your Mac.
- Launch MacKeeper and click Smart Uninstaller in the left sidebar.
- Click Start Scan.
- Click Leftovers in the left menu.
- Select the leftover files you want to delete and click Remove Selected.
- Click Remove on the pop-up to confirm the deletion.
- You’ll get a Removal Completed notification. Click Rescan if you want to run the scan again.
What Else Can MacKeeper Do?
Besides deleting junk files and leftover files, MacKeeper is your one-stop solution for all your Mac optimization needs. You can use it to scan your Mac for viruses, block unwanted ads on your Mac, and free up RAM. If you want to learn more about its amazing features, read my detailed MacKeeper review.
6. Delete Unused .DMGs
I always forget to delete them after installing apps or extracting files from downloaded disk images (.DMGs). If you’re like me, you must have a few .DMG files in your Downloads folder. They can take up unnecessary space and slow down your system.
Here’s how to delete disk images on Mac:
- Open Finder from your Dock.
- Click the small magnifying glass icon in the top right corner of the Finder window.
- Type dmg in the search bar, and it will show all files with the same extension in their name.
- Delete the .dmg files you no longer need by right-clicking and selecting Move to Bin.
7. Remove Large and Old Files
Your Mac can accumulate large files and old documents, like videos or high-resolution photos, that you may no longer need. Finding and removing these can significantly free up space. It ensures your Mac’s storage is used efficiently, keeping only the files that are important and currently useful.
If you have large-sized videos and photos that you want to keep, I suggest moving them to an external drive.
Here’s how to remove large and old files on your Mac:
- Open Finder, click File in the menu bar, and select New Smart Folder.
- Click the + icon in the upper-right corner of the New Smart Folder window.
- Set the search parameters for files larger than a specific size.
- Select the files you want to delete and move them to the Bin by right-clicking and selecting Move to Bin.
- Empty the Bin to remove large files from your Mac permanently.
8. Remove Xcode Junk
I frequently use Xcode on my Mac for app development and I’ve noticed it creates a lot of temporary files and data. At first, I didn’t realize the impact, but eventually, my Mac started slowing down. So, I began regularly clearing out these temp files from Xcode, which made a significant difference.
For any developer, this practice is key to keeping the Mac in top shape and ensuring optimal performance. Here’s how to remove Xcode junk on your Mac
- Open Finder, click Go in the menu bar, and select Go to Folder.
- Paste the following in the empty field one by one:
~/Library/Application Support/MobileSync/Backup
~/Library/Caches/com.apple.dt.Xcode
~/Library/Developer/CoreSimulator
~/Library/Developer/Xcode/Archives
~/Library/Developer/Xcode/DerivedData
~/Library/Developer/Xcode/iOS DeviceSupport
- Delete any Xcode junk files you no longer need.
Get Rid of All Junk Files on Your Mac
Regularly removing junk files can free up valuable space and help your Mac run faster. Here are some more tips to improve your Mac’s performance:
- Clear temp files on your Mac regularly and keep them from piling up.
- Clean your browser cache on Mac regularly to prevent it from accumulating over time.
- Remove login items on your Mac to free up memory and improve its speed.