Use Caution

Solana CLI Ledger & Keypair Cache (~/.config/solana)

Quick Answer: The .config/solana folder stores Solana CLI transaction history, test validator ledgers, and keypair files. Use caution.

Bottom Line: Use caution. ~/.config/solana contains Solana CLI configuration files, test validator ledger data, and default wallet keypairs (id.json).


What is Solana CLI Cache?

Located at ~/.config/solana/ on Linux and macOS, Solana CLI uses this folder to store cluster RPC endpoints, local test validator ledger states, and keypair secrets.


Can You Delete Solana CLI Cache?

⚠️ Use Caution.

  • Wallet Keypair Risk: Do NOT delete id.json unless you have backed up your private key seed phrase.
  • Test Ledger Data (Safe): You can safely delete test-ledger/ generated during local smart contract testing.

How to Clean Up Local Test Ledgers

solana-test-validator --reset
rm -rf ~/.config/solana/test-ledger

Discussion

Loading authentication...

Related in developer

The AI Engineer's Model Disk Cleanup Guide: Hugging Face, Ollama & PyTorch

The ultimate 1,200-word field guide for AI developers and local LLM hobbyists to reclaim 200GB+ from Ollama, Hugging Face, PyTorch, and vLLM model weights.

Safe to Delete

Android Studio System Index Cache (AndroidStudio Cache)

Android Studio caches Gradle project indexes, VFS caches, and compiler artifacts. Invalidate and clear is safe.

Safe to Delete

Ansible Automation Temp & Fact Cache (~/.ansible/tmp)

Ansible stores temporary playbook execution modules and target host fact JSON caches in ~/.ansible/tmp. Clearing Ansible tmp is safe.

Safe to Delete
Back to all files