# Is it safe to delete ~/Library/Keychains?

Is it safe to delete? · macOS files · Updated 21 November 2026. By Mohit Nippanikar, who makes SiftMac.

## The short answer

- **No.** `~/Library/Keychains` holds your login keychain and this Mac’s copy of your iCloud Keychain or Local Items: saved passwords, passkeys, certificates and private keys. Deleting it frees almost no space and loses whatever isn’t stored anywhere else.
- **What it costs you:** apps and websites ask you to sign in again, and certificates and keys that lived only on this Mac are gone.
- **Does it come back?** Not by itself. Passwords you sync with iCloud Keychain are still in iCloud, but anything kept only on this Mac needs a backup to come back.
- SiftMac’s verdict: Leave it

## 1. What it is

A keychain is an encrypted database of secrets that macOS and your apps fill in so you don’t have to type them again: passwords for websites and apps, passkeys, secure notes, certificates and the private keys that go with them. The Passwords app shows your passwords, passkeys and verification codes; Keychain Access shows everything, certificates and keys included.

The folder holds two kinds of keychain:

- `login.keychain-db`, your login keychain. It’s the classic file-based keychain, and it unlocks when you log in because it normally has the same password as your user account.
- A folder named with a long ID of letters, numbers and dashes. Inside is this Mac’s copy of the newer keychain where most passwords, keys and passkeys are kept. It’s called iCloud Keychain if you sync it with iCloud, and Local Items if you don’t.

You may see a few more small files next to them, such as `metadata.keychain-db`. All of it belongs to macOS’s keychain service.

## 2. Where it is

```
~/Library/Keychains
```

Apple’s Keychain Access guide says keychains are usually in the Keychains folder inside the Library folder in your home folder. To see what’s in them without touching the files, open Keychain Access (search for it with Spotlight) or the Passwords app.

## 3. How big it gets

Small. Keychains hold short pieces of text and a few certificates, so the folder is measured in megabytes, not gigabytes. Check yours:

```
du -sh ~/Library/Keychains
```

Deleting it would barely change your free space. If the disk is full, [the System Data guide](https://siftmac.com/guides/system-data-on-mac) and [Mac storage full](https://siftmac.com/guides/mac-storage-full) show where the space really goes.

## 4. What to do instead

There’s no safe way to delete the folder. What people usually want is one of these, and each has its own tool:

- **Fewer saved passwords:** delete the ones you don’t use in the Passwords app, or select them in Keychain Access and delete them there. With iCloud Keychain on, the change reaches your other devices too.
- **Your Mac keeps asking for the login keychain password:** the keychain password no longer matches your login password, usually after the login password was reset. Apple recommends changing your password in Users & Groups settings so the keychain follows. Only if you don’t remember the old password, reset the default keychain: Keychain Access › Settings › Reset Default Keychains, then log out and back in. Apple warns that this deletes all the passwords saved in the keychain, and recommends doing it only when Apple Support advises it.
- **A keychain you made yourself, or one whose password you’ve forgotten:** in Keychain Access, select it in the Keychains list, choose File › Delete Keychain, and click Delete References.

> Don’t delete `login.keychain-db` or the long-ID folder in Finder to start fresh. You lose every item in them, and macOS has no way to know that’s what you meant.

## 5. If it was deleted anyway

- Every password, certificate and key that was only in those files is gone; a Time Machine or other backup is the only way back.
- Mail, browsers and other apps that kept their sign-ins in the keychain ask for them again.
- Passwords and passkeys stored in iCloud Keychain are still in iCloud and on your other devices.
- To bring back a keychain deleted from this Mac, restore its file from Time Machine and add it in Keychain Access with File › Add Keychain. You need its password.

## Questions

### Can I delete all keychains on my Mac?

No. They’re where macOS keeps your passwords, passkeys, certificates and keys. If you want a clean start because of password prompts, Apple’s Reset Default Keychains replaces them properly; if you want fewer saved passwords, delete them in the Passwords app.

### Why does my Mac keep asking for the login keychain password?

Because the login keychain still has your old login password. Apple’s fix is to update the keychain password to match. Only if you don’t know the old one should you reset the default keychain, which deletes the passwords saved in it.

### Can I restore a keychain copied from another Mac?

Not reliably any more. Since macOS 26.4, a login keychain also depends on a key file kept in a protected system folder of the Mac it came from, so a copy moved to a different Mac can’t be unlocked unless that file comes too, as it does with Migration Assistant. On the same Mac, Apple’s File › Add Keychain route still applies.

### Does deleting keychains speed up a Mac or free space?

Neither. The folder is tiny, and losing it means more password prompts, not less work for your Mac.

## How SiftMac handles it

SiftMac never offers keychains for cleaning. None of its categories look in `~/Library/Keychains`, and its space map treats your Library as macOS’s and your apps’ to manage.

Download: https://siftmac.com/SiftMac.dmg (scanning is free, and so is the first 2 GB of cleaning).

## Sources

- [Apple: If you need to update your keychain password on Mac](https://support.apple.com/guide/keychain-access/kyca2429/mac)
- [Apple: Delete a keychain in Keychain Access on Mac](https://support.apple.com/guide/keychain-access/kyca2423/mac)
- [Apple: What is Keychain Access on Mac?](https://support.apple.com/guide/keychain-access/kyca1083/mac)
- [Eclectic Light: Explainer: Keychains (October 2026)](https://eclecticlight.co/2026/10/07/explainer-keychains/)

## Related

- [Is it safe to delete? Plain answers for 40 Mac folders](https://siftmac.com/guides/safe-to-delete-mac)
- [Before you migrate to a new Mac: what to clear first, and what to keep](https://siftmac.com/guides/clean-mac-before-migrating)
- [Can I delete .plist files in ~/Library/Preferences?](https://siftmac.com/safe-to-delete/preferences-plist-files)
- [Is it safe to delete Application Support on a Mac?](https://siftmac.com/safe-to-delete/application-support)
- [How to clear System Data on a Mac, safely](https://siftmac.com/guides/system-data-on-mac)

Canonical: https://siftmac.com/safe-to-delete/keychains
