Safe to Delete

AWS CLI Cache (~/.aws/cli/cache)

Quick Answer: The AWS CLI cache stores temporary IAM SSO session tokens and API responses. Deleting it is safe.

Bottom Line: It is 100% safe to delete ~/.aws/cli/cache. Deleting it clears cached AWS IAM SSO authentication tokens.


What is the AWS CLI Cache?

Located at ~/.aws/cli/cache (or %USERPROFILE%\.aws\cli\cache), AWS CLI v2 caches temporary security credentials, role assume tokens, and service JSON schemas.


Can You Delete AWS CLI Cache?

✅ Yes, safe to delete.

  • Re-authenticate: You will simply be prompted to run aws sso login to refresh your authentication session.

How to Clear AWS CLI Cache

rm -rf ~/.aws/cli/cache/*

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