What it is
Cached API discovery and HTTP responses for kubectl.
Can you delete it?
Yes, it is rebuilt automatically. kubectl rebuilds it on the next command. Keep ~/.kube/config: it holds your cluster access.
How to clean it safely
- Delete ~/.kube/cache only.
How big is it on your Mac?
This read-only command prints its size and changes nothing:
Terminal
du -sh ~/".kube/cache" 2>/dev/nullStep-by-step guide: Developer caches on a Mac →
Related folders
- Helm cache ·
~/Library/Caches/helm - minikube ·
~/.minikube - kind clusters ·
Docker containers named kind-* - NuGet packages (.NET) ·
~/.nuget/packages - Maven local repository ·
~/.m2/repository - Carthage cache ·
~/Library/Caches/org.carthage.CarthageKit
Questions
Is it safe to delete ~/.kube/cache?
Yes, it is rebuilt automatically. kubectl rebuilds it on the next command. Keep ~/.kube/config: it holds your cluster access.
Let the raccoon do it, safely
Junk Raccoon finds this clutter for you, shows every file first, and keeps a one-click way back. Free to download, no account, no ads.
Download for Mac