Uninstall Mac apps with every file they leave behind, and see why each belongs. Free up space, fine-tune macOS, and set up Terminal.
Swift cache-cleanercleanerclideveloper-toolsdisk-cleanupdisk-spaceduplicate-finderhomebrewliquid-glassmac-cleanermacosmacos-appmacos-golden-gatemacos-tahoemacos-tweaksswiftswiftuiterminal-themesuninstalluninstaller
Wallet keys are protected, and a folder that holds one can't be selected
Țugui Dragoș869a7c5dcd22
diff --git a/Localization/Peel/Localizable.xcstrings b/Localization/Peel/Localizable.xcstringsindex fa8c4ea1..2144d061 100644--- a/Localization/Peel/Localizable.xcstrings+++ b/Localization/Peel/Localizable.xcstrings@@ -46887,6 +46887,112 @@}}},+ "Left alone: a wallet or a key Peel protects is inside, so Peel leaves this folder where it is." : {+ "localizations" : {+ "cs" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Nedotčeno: uvnitř je peněženka nebo klíč, které Peel chrání, a proto Peel tuto složku ponechá, kde je."+ }+ },+ "de" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Unangetastet: Darin liegt eine von Peel geschützte Wallet oder ein von Peel geschützter Schlüssel, daher lässt Peel diesen Ordner, wo er ist."+ }+ },+ "es" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "No se toca: dentro hay un monedero digital o una clave que Peel protege, así que Peel deja esta carpeta donde está."+ }+ },+ "fr" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Laissé en place : il contient un portefeuille ou une clé que Peel protège, et Peel laisse donc ce dossier là où il est."+ }+ },+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Resta dov’è: all’interno c’è un wallet o una chiave che Peel protegge, quindi Peel non sposta questa cartella."+ }+ },+ "ja" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "対象外: Peelが保護しているウォレットまたは鍵が中にあるため、Peelはこのフォルダをそのままにします。"+ }+ },+ "ko" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "그대로 둠: Peel이 보호하는 지갑이나 키가 안에 있으므로 Peel은 이 폴더를 그대로 둡니다."+ }+ },+ "nl" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Blijft staan: er zit een wallet of een sleutel in die Peel beschermt, dus Peel laat deze map staan waar die staat."+ }+ },+ "pl" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Nietknięte: w środku jest portfel lub klucz chroniony przez Peel, więc Peel zostawia ten folder na miejscu."+ }+ },+ "pt" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Preservado: há dentro uma carteira ou uma chave que o Peel protege, então o Peel deixa esta pasta onde está."+ }+ },+ "ro" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Lăsat neatins: înăuntru se află un portofel sau o cheie pe care Peel le protejează, așa că Peel lasă acest dosar unde se află."+ }+ },+ "ru" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Остается на месте: внутри находится кошелек или ключ, который защищает Peel, поэтому Peel оставляет эту папку там, где она находится."+ }+ },+ "sv" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Rörs inte: en plånbok eller en nyckel som Peel skyddar ligger i den, så Peel lämnar mappen där den är."+ }+ },+ "tr" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Yerinde kalır: içinde Peel’in koruduğu bir cüzdan veya anahtar var, bu yüzden Peel bu klasörü yerinde bırakır."+ }+ },+ "uk" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Лишається на місці: усередині є гаманець або ключ, які захищає Peel, тож Peel не переміщує цю папку."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "留在原处:其中有受Peel保护的钱包或密钥,因此Peel会将此文件夹保留在原处。"+ }+ },+ "zh-Hant" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "原地保留:其中有受Peel保護的錢包或密鑰,因此Peel會讓此檔案夾留在原處。"+ }+ }+ }+ },"Left alone: only an administrator can move this, and Peel’s helper isn’t allowed to move it from here." : {"localizations" : {"cs" : {diff --git a/Packages/PeelCore/Sources/PeelCommandLine/Support/Output.swift b/Packages/PeelCore/Sources/PeelCommandLine/Support/Output.swiftindex e93c8d28..173a57fe 100644--- a/Packages/PeelCore/Sources/PeelCommandLine/Support/Output.swift+++ b/Packages/PeelCore/Sources/PeelCommandLine/Support/Output.swift@@ -239,6 +239,7 @@ extension HoldBack {case .holdsDocuments: "holds the app's documents"case .holdsALibrary: "holds a photo, music, or video library"case .holdsAWallet: "holds a wallet or a signing key"+ case .holdsKeys: "holds a wallet or a key Peel protects"case .insideAnotherAppsFolder: "inside another app's folder"case .beyondTheHelper: "needs an administrator, and Peel's helper may not move it"}diff --git a/Packages/PeelCore/Sources/PeelCore/Leftovers/Leftover.swift b/Packages/PeelCore/Sources/PeelCore/Leftovers/Leftover.swiftindex a4bca7af..77396fac 100644--- a/Packages/PeelCore/Sources/PeelCore/Leftovers/Leftover.swift+++ b/Packages/PeelCore/Sources/PeelCore/Leftovers/Leftover.swift@@ -51,6 +51,8 @@ public enum HoldBack: String, Sendable, Hashable {case holdsALibrary/// A cryptocurrency wallet or a signing key is inside, which may exist nowhere else.case holdsAWallet+ /// A wallet or a key `ProtectedData` names is inside, and `RemovalGuard` refuses to move the folder around it.+ case holdsKeys/// Claimed on the app's name (or an identifier that is only a word), inside a folder that belongs to another/// installed app or to Apple. It is probably the other app's data about this one, as a documentation browser/// or a controller app keeps.@@ -60,7 +62,7 @@ public enum HoldBack: String, Sendable, Hashable {/// True when the item cannot be selected at all, rather than only left unselected.public var cannotBeMoved: Bool {- self == .holdsDocuments || self == .holdsALibrary || self == .beyondTheHelper+ self == .holdsDocuments || self == .holdsALibrary || self == .holdsKeys || self == .beyondTheHelper}}diff --git a/Packages/PeelCore/Sources/PeelCore/Leftovers/LeftoverScanner.swift b/Packages/PeelCore/Sources/PeelCore/Leftovers/LeftoverScanner.swiftindex bd4ab136..87d0d892 100644--- a/Packages/PeelCore/Sources/PeelCore/Leftovers/LeftoverScanner.swift+++ b/Packages/PeelCore/Sources/PeelCore/Leftovers/LeftoverScanner.swift@@ -149,7 +149,7 @@ public struct LeftoverScanner: Sendable {let url = location.url.appending(path: name)guard !isIrreplaceable(url, home: home) else { continue }if let match = claim(name, at: url, kind: location.kind, matcher: matcher, bundle: bundle), !isSharedWithTheWholeMac(url, home: home) {- leftovers.append(await leftover(at: url, kind: location.kind, match: match, parent: parent, measure: measure))+ leftovers.append(await leftover(at: url, kind: location.kind, match: match, parent: parent, home: home, measure: measure))} else if nestedKinds.contains(location.kind), url.isRealFolder {// Not this app's. Whether it is somebody else's decides what a name inside it is worth.nobodysFolders.append((url, isSomebodyElses(name, kind: location.kind, matcher: matcher)))@@ -189,7 +189,7 @@ public struct LeftoverScanner: Sendable {guard !isIrreplaceable(url, home: home) else { continue }if let match = matcher.match(fileName: name, kind: kind), match.confidence >= .likely,!isSharedWithTheWholeMac(url, home: home) {- found.append(await leftover(at: url, kind: kind, match: match, parent: parent, isInsideAnotherAppsFolder: isAnotherApps, measure: measure))+ found.append(await leftover(at: url, kind: kind, match: match, parent: parent, home: home, isInsideAnotherAppsFolder: isAnotherApps, measure: measure))} else if depth + 1 < nestedDepth, url.isRealFolder {deeper.append((url, isAnotherApps || isSomebodyElses(name, kind: kind, matcher: matcher)))}@@ -207,6 +207,7 @@ public struct LeftoverScanner: Sendable {kind: SearchLocation.Kind,match: LeftoverMatch,parent: ParentAccess,+ home: String,isInsideAnotherAppsFolder: Bool = false,measure: Measure = LeftoverScanner.walk) async -> Leftover {@@ -222,6 +223,8 @@ public struct LeftoverScanner: Sendable {.couldNotBeRead} else if kind == .containers, ProtectedData.holdsAContainersDocuments(url.path(percentEncoded: false)) {.holdsDocuments+ } else if ProtectedData.holds(url.path(percentEncoded: false), home: home) {+ .holdsKeys} else if ProtectedData.holdsALibrary(url.path(percentEncoded: false)) {.holdsALibrary} else if let contents {diff --git a/Packages/PeelCore/Sources/PeelCore/Orphans/OrphanScanner.swift b/Packages/PeelCore/Sources/PeelCore/Orphans/OrphanScanner.swiftindex 4a7c062b..f2eeefb1 100644--- a/Packages/PeelCore/Sources/PeelCore/Orphans/OrphanScanner.swift+++ b/Packages/PeelCore/Sources/PeelCore/Orphans/OrphanScanner.swift@@ -56,9 +56,10 @@ public struct OrphanScanner: Sendable {)let results = await withTaskGroup(of: LocationResult.self) { group in+ let home = environment.homeDirectory.path(percentEncoded: false)for location in environment.locations {_ = group.addTaskUnlessCancelled { [walk] in- await Self.scan(location, ownership: ownership, jobs: jobs, goneBundles: goneBundles, walk: walk)+ await Self.scan(location, ownership: ownership, jobs: jobs, goneBundles: goneBundles, home: home, walk: walk)}}return await group.reduce(into: [LocationResult]()) { $0.append($1) }@@ -248,6 +249,7 @@ public struct OrphanScanner: Sendable {ownership: AppOwnership,jobs: BackgroundItemOwnership,goneBundles: [String: String],+ home: String,walk: LeftoverScanner.Measure) async -> LocationResult {let entries: [String]@@ -275,6 +277,8 @@ public struct OrphanScanner: Sendable {let path = url.path(percentEncoded: false)let leftAlone: HoldBack? = if location.kind == .containers, ProtectedData.holdsAContainersDocuments(path) {.holdsDocuments+ } else if ProtectedData.holds(path, home: home) {+ .holdsKeys} else {ProtectedData.holdsALibrary(path) ? .holdsALibrary : nil}diff --git a/Packages/PeelCore/Sources/PeelCore/Removal/Uninstallation.swift b/Packages/PeelCore/Sources/PeelCore/Removal/Uninstallation.swiftindex 29e9000c..e58ce586 100644--- a/Packages/PeelCore/Sources/PeelCore/Removal/Uninstallation.swift+++ b/Packages/PeelCore/Sources/PeelCore/Removal/Uninstallation.swift@@ -75,7 +75,8 @@ public struct Uninstallation: Sendable {at: url,kind: .receipts,match: LeftoverMatch(reason: .installerReceipt, confidence: .certain, sharedWith: []),- parent: ParentAccess(url.deletingLastPathComponent())+ parent: ParentAccess(url.deletingLastPathComponent()),+ home: environment.homeDirectory.path(percentEncoded: false)))}}@@ -111,7 +112,8 @@ public struct Uninstallation: Sendable {confidence: item.isInLibrary && own != nil ? .likely : .possible,sharedWith: rivals.union(own?.sharedWith ?? []).sorted()),- parent: ParentAccess(item.url.deletingLastPathComponent())+ parent: ParentAccess(item.url.deletingLastPathComponent()),+ home: environment.homeDirectory.path(percentEncoded: false))leftovers.append(exclusions.holds(item.url) ? leftover.heldBack(.holdsAnExclusion) : leftover)}diff --git a/Packages/PeelCore/Sources/PeelPrivileged/ProtectedData.swift b/Packages/PeelCore/Sources/PeelPrivileged/ProtectedData.swiftindex 336cf8f4..07c65d9c 100644--- a/Packages/PeelCore/Sources/PeelPrivileged/ProtectedData.swift+++ b/Packages/PeelCore/Sources/PeelPrivileged/ProtectedData.swift@@ -60,18 +60,80 @@ public enum ProtectedData: Sendable {/// `settings.xml`./// - `gradle.properties` is where Gradle's signing documentation says to keep `signing.keyId`,/// `signing.password`, and `signing.secretKeyRingFile`, rather than in a project.- /// - `wallets` holds Electrum's wallets. Unless the user kept the seed phrase, losing the file loses the- /// money./// - `.git-credentials` is git's credential store, which keeps passwords in plain text/// (`man git-credential-store`).public static let homeKeys = [".android/debug.keystore",".m2/settings-security.xml",".gradle/gradle.properties",- ".electrum/wallets",".git-credentials",]+ /// Where desktop wallets and key tools keep their keys, as each project's own documentation or source says.+ /// Losing one loses what it holds unless its seed phrase was kept somewhere else, so each is refused, and so+ /// is every folder holding one, while what sits beside it and comes back on its own, such as a downloaded+ /// blockchain, can still go. A whole folder is named where the keys lie at its top among everything else.+ public static let walletKeys = [+ "Library/Application Support/Bitcoin/wallets",+ "Library/Application Support/Bitcoin/wallet.dat",+ "Library/Application Support/Litecoin/wallets",+ "Library/Application Support/Litecoin/wallet.dat",+ "Library/Application Support/Dogecoin/wallet.dat",+ "Library/Application Support/DashCore/wallets",+ "Library/Application Support/DashCore/wallet.dat",+ "Library/Application Support/Zcash/wallet.dat",+ "Library/Application Support/Zcash/zingo-wallet.dat",+ ".zallet/wallet.db",+ ".zallet/encryption-identity.txt",+ "Library/Containers/me.hanh.ywallet.ywallet/Data/Library/Application Support/me.hanh.ywallet.ywallet/databases",+ "Monero/wallets",+ "Library/Application Support/MyMonero",+ ".electrum/wallets",+ ".electrum-ltc/wallets",+ ".electrum-grs/wallets",+ ".electron-cash/wallets",+ ".electrum-dash/wallets",+ ".sparrow/wallets",+ ".local/share/sparrow/wallets",+ ".walletwasabi/client/Wallets",+ ".specter/wallets",+ ".specter/devices",+ "Library/Application Support/Bisq/btc_mainnet/wallet",+ "Library/Application Support/Bisq/btc_mainnet/keys",+ "Library/Application Support/Liana/bitcoin",+ "Library/Application Support/Nunchuk",+ "Library/Application Support/Blockstream/Green/wallets2",+ "Library/Containers/io.bluewallet.bluewallet/Data/Library/Caches/keyvalue.realm",+ "Library/Application Support/Exodus/exodus.wallet",+ "Library/Application Support/Exodus/Backups",+ "Library/Application Support/atomic",+ "Library/Application Support/@onekeyhq/desktop",+ "Library/Application Support/Frame/signers",+ "Library/Application Support/rabby-desktop",+ "Library/Ethereum/keystore",+ ".foundry/keystores",+ "Library/Preferences/hardhat-nodejs/keystore.json",+ ".phoenix/seed.dat",+ "Library/Application Support/Lnd/data",+ ".lightning/bitcoin/hsm_secret",+ ".lightning/bitcoin/lightningd.sqlite3",+ ".lightning/bitcoin/emergency.recover",+ "Library/Application Support/albyhub",+ ".config/solana/id.json",+ ".sui/sui_config/sui.keystore",+ ".aptos/config.yaml",+ ".near-credentials",+ ".tezos-client/secret_keys",+ ".gaia/keyring-file",+ ".gaia/keyring-test",+ ".gaia/config/priv_validator_key.json",+ "Library/Application Support/Daedalus Mainnet/wallets",+ "Library/Application Support/decrediton/wallets",+ ".chia_keys",+ ".grin/main/wallet_data",+ ".kaspa",+ ]+/// Hidden items in the home folder that belong to no single app: shells, git, and the folders many tools/// share. Never removed on any app's behalf, but what sits inside `.config`, `.cache`, and `.local` still/// can be, so this is an exact match and not a tree.@@ -207,7 +269,7 @@ public enum ProtectedData: Sendable {private static func trees(under home: String) -> [[String]] {treesByHome.withLock { cache inif let trees = cache[home] { return trees }- let trees = (homeFolders + homeKeys).map { PathComponents.of((home as NSString).appendingPathComponent($0).lowercased()) }+ let trees = (homeFolders + homeKeys + walletKeys).map { PathComponents.of((home as NSString).appendingPathComponent($0).lowercased()) }if cache.count >= 32 { cache.removeAll() }cache[home] = treesreturn treesdiff --git a/Packages/PeelCore/Tests/PeelCoreTests/AttackRemovalGuardTests.swift b/Packages/PeelCore/Tests/PeelCoreTests/AttackRemovalGuardTests.swiftindex 5bfc2a6f..15b80a12 100644--- a/Packages/PeelCore/Tests/PeelCoreTests/AttackRemovalGuardTests.swift+++ b/Packages/PeelCore/Tests/PeelCoreTests/AttackRemovalGuardTests.swift@@ -232,10 +232,12 @@ struct AttackRemovalGuardTests {try directory.file("home/.gradle/caches/modules-2/thing.jar")try directory.file("home/.electrum/wallets/default_wallet")try directory.file("home/.electrum/blockchain_headers", bytes: 4_096)+ try directory.file("home/Library/Application Support/Bitcoin/wallets/wallet.dat")+ try directory.file("home/Library/Application Support/Bitcoin/blocks/blk00000.dat", bytes: 4_096)let guardian = RemovalGuard(environment: SearchEnvironment(homeDirectory: home, rootDirectory: directory.url.appending(path: "root")))let homePath = home.path(percentEncoded: false)- for key in ProtectedData.homeKeys {+ for key in ProtectedData.homeKeys + ProtectedData.walletKeys {let url = home.appending(path: key)#expect(!guardian.allowsRemoval(of: url), "\(key) may be removed")#expect(ProtectedData.refuses(url.path(percentEncoded: false), home: homePath))@@ -245,7 +247,7 @@ struct AttackRemovalGuardTests {}// What comes back on its own is still cleanable, which is the whole point of naming the key alone.- for cache in [".android/avd", ".m2/repository", ".gradle/caches", ".electrum/blockchain_headers"] {+ for cache in [".android/avd", ".m2/repository", ".gradle/caches", ".electrum/blockchain_headers", "Library/Application Support/Bitcoin/blocks"] {#expect(guardian.allowsRemoval(of: home.appending(path: cache)), "\(cache) is refused")}}diff --git a/Packages/PeelCore/Tests/PeelCoreTests/LeftoverScannerTests.swift b/Packages/PeelCore/Tests/PeelCoreTests/LeftoverScannerTests.swiftindex a8effade..8ec83e5e 100644--- a/Packages/PeelCore/Tests/PeelCoreTests/LeftoverScannerTests.swift+++ b/Packages/PeelCore/Tests/PeelCoreTests/LeftoverScannerTests.swift@@ -546,6 +546,21 @@ struct LeftoverScannerTests {#expect(folder.match.heldBack == .holdsAWallet)}+ /// A folder that holds a wallet Peel protects is listed, and cannot be selected: `RemovalGuard` refuses to+ /// move it, so offering it would only end in a refusal.+ @Test func aLeftoverHoldingAProtectedWalletCannotBeSelected() async throws {+ let directory = try TemporaryDirectory()+ let coin = InstalledApp(url: URL(filePath: "/Applications/Litecoin.app"), bundleIdentifier: "org.litecoin.Litecoin", name: "Litecoin")+ try directory.file("home/Library/Application Support/Litecoin/wallets/wallet.dat", bytes: 64)+ try directory.file("home/Library/Application Support/Litecoin/blocks/blk0000.dat", bytes: 64_000)++ let scan = await LeftoverScanner(environment: environment(in: directory)).scan(coin, installedApps: [coin])+ let folder = try #require(scan.leftovers.first { $0.url.lastPathComponent == "Litecoin" })++ #expect(folder.match.heldBack == .holdsKeys)+ #expect(folder.match.heldBack?.cannotBeMoved == true)+ }+/// Plug-ins are found in the user's Library and the system's, including inside a vendor's own folder.@Test func findsThePlugInsAnAppInstalled() async throws {let directory = try TemporaryDirectory()diff --git a/Packages/PeelCore/Tests/PeelCoreTests/OrphanScannerTests.swift b/Packages/PeelCore/Tests/PeelCoreTests/OrphanScannerTests.swiftindex 18d5a5a1..14d9f86c 100644--- a/Packages/PeelCore/Tests/PeelCoreTests/OrphanScannerTests.swift+++ b/Packages/PeelCore/Tests/PeelCoreTests/OrphanScannerTests.swift@@ -222,6 +222,17 @@ struct OrphanScannerTests {#expect(items.first?.leftAlone == .holdsALibrary)}+ /// An app that is gone can leave its wallet behind in its container, and `RemovalGuard` refuses the+ /// container around it.+ @Test func anOrphanedFolderThatHoldsAProtectedWalletSaysSo() async throws {+ let directory = try TemporaryDirectory()+ try directory.file("home/Library/Containers/io.bluewallet.bluewallet/Data/Library/Caches/keyvalue.realm")++ let items = await scanner(in: directory).scan(installedApps: installed).groups.flatMap(\.items)++ #expect(items.first?.leftAlone == .holdsKeys)+ }+/// The apps macOS ships claim their folders like any other app, and none of them is in the list Peel scans.@Test func ignoresGroupsDeclaredBySystemApps() async throws {let directory = try TemporaryDirectory()diff --git a/Peel/Views/Presentation.swift b/Peel/Views/Presentation.swiftindex 81924137..0b483667 100644--- a/Peel/Views/Presentation.swift+++ b/Peel/Views/Presentation.swift@@ -192,6 +192,8 @@ extension HoldBack {"Left alone: a photo, music, or video library is inside, so Peel leaves this folder where it is."case .holdsAWallet:"Not selected: a wallet or a signing key is inside. Once the Trash is emptied, what it opens is gone for good unless you have a backup."+ case .holdsKeys:+ "Left alone: a wallet or a key Peel protects is inside, so Peel leaves this folder where it is."case .insideAnotherAppsFolder:"Not selected: only the name matches, and it sits inside a folder that belongs to macOS or to another installed app, which may be keeping it for itself."case .beyondTheHelper:diff --git a/README.md b/README.mdindex 90f0eb60..53786a8d 100644--- a/README.md+++ b/README.md@@ -148,9 +148,9 @@ A cleaner should never cost you something you wanted. Peel is built around that.- **The Trash, never deletion.** Everything Peel removes goes to the Trash, and History puts it back where it was.Three things can't be undone that way, and Peel says so before you confirm them: Homebrew's own uninstall andcleanup, and resetting an app's privacy permissions.-- **Protected places stay protected.** Peel refuses to move iCloud Drive, keychains, your SSH and signing keys,- Mail, Messages, Safari, Contacts, Calendars, Notes, photo and music libraries, iPhone and iPad backups, and the- Desktop, Documents, and Downloads folders themselves. No selection can override it.+- **Protected places stay protected.** Peel refuses to move iCloud Drive, keychains, your SSH and signing keys, the+ keys of crypto wallets, Mail, Messages, Safari, Contacts, Calendars, Notes, photo and music libraries, iPhone and+ iPad backups, and the Desktop, Documents, and Downloads folders themselves. No selection can override it.- **Checked again at the last moment.** Peel looks at each item once more right before it moves, so somethingswapped in the meantime stays where it is.- **Nothing shared, nothing unknown.** A file another app also uses is never selected for you. A folder Peeldiff --git a/SAFETY.md b/SAFETY.mdindex f407314b..2f3d7acd 100644--- a/SAFETY.md+++ b/SAFETY.md@@ -35,7 +35,8 @@ In the Library of every account on the Mac and, for the last rows, in the home f| `Containers/com.apple.freeform`, `com.apple.journal`, Stickies' notes, Safari's own store | Boards, journal entries, stickies, and tabs. || `.Trash` | Already-deleted things are not Peel's to delete again. || `.ssh`, `.gnupg`, `.aws`, `.password-store` | Keys, credentials, secrets. |-| `.android/debug.keystore`, `.m2/settings-security.xml`, `.gradle/gradle.properties`, `.electrum/wallets`, `.git-credentials` | One key or credential each, named on its own so the cache around it can still be cleaned: the file stays, and so does any folder that holds it. |+| `.android/debug.keystore`, `.m2/settings-security.xml`, `.gradle/gradle.properties`, `.git-credentials` | One key or credential each, named on its own so the cache around it can still be cleaned: the file stays, and so does any folder that holds it. |+| The keys of desktop wallets and key tools: Bitcoin Core's `wallets` and `wallet.dat`, and those of Litecoin, Dogecoin, Dash, and Zcash; Monero's `wallets`; the Electrum family's, Sparrow's, Wasabi's, and Specter's; Exodus's `exodus.wallet` and `Backups`; Atomic, OneKey, Frame, Rabby, Bisq, Liana, Nunchuk, and Green; geth, Foundry, and Hardhat keystores; the Lightning nodes; and the Solana, Sui, Aptos, NEAR, Tezos, Cosmos, Cardano, Decred, Chia, Grin, and Kaspa key files, 58 places in all | Lose one and what it holds is gone unless its seed phrase was kept somewhere else. Each is named on its own, read from the project's own documentation or source, so the key stays, and so does any folder that holds it, while what comes back on its own beside it, such as a downloaded blockchain, can still go. || `.config`, `.cache`, `.local`, your shell and git settings (`.zshrc`, `.gitconfig`, `.netrc`, `.npmrc`, and the like), and `.kube/config` | Shared by many tools and owned by no app. They are never removed themselves; what one tool keeps inside `.config`, `.cache`, or `.local` still can be. |Outside your home: everything inside `/System`, `/usr`, `/bin`, `/sbin`, and `/Library/Updates`, where macOS