Skip to content

Black Friday: 40% off. Purgy for $12 $20 with code Code , until Dec 12.

Get the deal
← Blog

Mac Library Folder: How to Open It and What Is Safe to Delete

The Mac Library folder: how to open it and what is safe to delete
On this page
  1. How to open the Library folder
  2. There are three Library folders
  3. What my Library looks like
  4. Folders that are usually safe to clear
  5. Folders that need care
  6. Folders you should never delete
  7. How to clean the Library safely
  8. Other hidden folders outside the Library
  9. How Purgy sorts the Library for you
  10. Questions about the Library folder

Quick answer: To open your Library, hold the Option key and choose Go > Library in Finder, or choose Go > Go to Folder and type ~/Library. Apple documents both. Inside, Caches and Logs can usually be cleared. Application Support and Containers hold real app data, so remove only what belongs to apps you deleted.

Tested on: MacBook Air M1, macOS 27.0.1, on 19 November 2026. I measured the folders in my own Library and checked the Library folder's hidden flag. The ways to open it are from Apple's guide, which I read the same day.

How to open the Library folder

The Library inside your home folder is hidden in Finder. Apple's guide to the Go menu gives two ways to reach it:

  1. The Option key. In Finder, open the Go menu, press and hold Option, and choose Library. Apple calls this its tip for going to your Library folder.
  2. Go to Folder. Choose Go > Go to Folder, type ~/Library and press Return. A ~ means your home folder.

Both are in Apple's guide. There is also a way to keep the folder visible. On my Mac, ls -ldO ~/Library shows the folder carries a hidden flag.

The chflags manual page says putting "no" before a flag name clears it. So chflags nohidden ~/Library unhides the folder, and chflags hidden ~/Library hides it again. I did not run it, because I prefer the Go menu.

There are three Library folders

macOS has several folders called Library, and they follow different rules.

  • ~/Library is inside your home folder and holds data for your account. This is where most cleanable space is.
  • /Library is at the top of your startup disk and is shared by every account. Changes need an administrator password.
  • /System/Library is part of macOS, protected by System Integrity Protection. Leave it alone.

This guide is about ~/Library.

What my Library looks like

Before you delete anything, measure. This command lists the biggest folders and changes nothing:

du -sh ~/Library/* 2>/dev/null | sort -hr | head -20

Here is the top of the list on my Mac:

Folder in ~/LibrarySize on my Mac
Application Support16 GB
Developer3.6 GB
Caches1.5 GB
HTTPStorages119 MB
Containers98 MB
Preferences31 MB

The folder most guides tell you to clear first, Caches, is only third. Application Support is more than ten times bigger. Your numbers will differ, and Terminal may not be able to read every protected folder.

Folders that are usually safe to clear

These hold data that apps and macOS rebuild by themselves. Quit the app first, and clear the contents rather than the folder itself.

  • Caches: data apps keep to work faster, such as thumbnails and downloaded web content. Each app has its own folder. See whether ~/Library/Caches is safe to delete.
  • Logs: records of what apps did. Old ones can go. See Mac log files.
  • Saved Application State: what each app had open when you quit it. Deleting it only means apps reopen with empty windows.

Folders that need care

These hold real data. Deleting the wrong part can reset an app or lose information. The safe rule is simple: only delete parts that belong to apps you have already removed.

  • Application Support: databases, downloaded content, plug-ins and libraries. It is the biggest folder on my Mac. See Application Support folders.
  • Containers and Group Containers: data for sandboxed apps, and data shared between apps from one developer.
  • Preferences: one settings file per app. Deleting one resets that app.
  • WebKit and Cookies: website data. Clearing it may sign you out.
  • Developer: Xcode data and simulators. Much of it can go, but read before you delete.

Folders you should never delete

Some folders hold things that are hard or impossible to get back. Leave them, even when they look big.

  • Keychains: saved passwords and certificates.
  • Mail and Messages: your email and message history. Shrink them from the apps.
  • Mobile Documents: your iCloud Drive files. Deleting here can delete them from iCloud too.

How to clean the Library safely

Good habits matter more than any one command.

  1. Check that a backup has run recently.
  2. Quit the apps involved, including menu bar apps.
  3. Move items to the Trash instead of deleting them outright.
  4. Use the app for a day, then empty the Trash.

Avoid rm -rf ~/Library/Caches/* as a habit. It works, but it skips the Trash and gives no way back after a typo.

Other hidden folders outside the Library

Some of the biggest space users are hidden elsewhere. /private/var/folders holds temporary files. Developer tools keep dot folders in your home folder, such as ~/.ollama. See where Ollama stores models.

Most of this counts as System Data in Storage settings, so clearing it can lower that number. The full picture is in how to clear System Data on Mac.

How Purgy sorts the Library for you

The Library mixes things you can clear with things you must keep. Purgy puts what it finds into three groups, so you are not guessing:

  • Safe to free: caches and logs that rebuild by themselves. Ticked by default, cleared in one click.
  • Yours to decide: real files, such as old backups. Never ticked for you, and anything you choose goes to the Trash.
  • Protected: Documents, Desktop, Pictures, Mail, Messages, Group Containers and your local iCloud Drive files, plus macOS itself. Purgy measures them but does not offer them for cleaning by default.

Its Space map opens any folder, hidden ones included, largest first. That is faster than Finder's Get Info one folder at a time. See your own Library with the free trial.

Questions about the Library folder

These come up most.

Can I delete the whole Caches folder?

Clear its contents, not the folder, and quit apps first. Some apps expect the folder to exist and may show errors until it is recreated.

Is it safe to delete Application Support folders?

Only for apps you have removed. For apps you still use, the folder holds their data, and deleting it is like resetting the app, sometimes with real data loss.

Will clearing the Library speed up my Mac?

Usually not by much. It frees space, which helps most when the disk is nearly full.