Skip to content

AWS CLI sign-in caches

Last updated 1 November 2026

What it is, where it lives on your Mac, and whether it’s safe to delete.

Check before deleting

Usually, but look first. Nothing to download: you sign in again (aws sso login, or the next role you assume).

Where it is

  • ~/.aws/cli/cache
  • ~/.aws/sso/cache

What it is

The AWS CLI caches temporary credentials for assumed roles (cli/cache) and SSO sign-in tokens (sso/cache) here; they expire and are made again when you sign in.

Review only and never pre-selected: removing them signs you out. Your config and credentials files stay.

Is it safe to delete?

Usually, but look first. Nothing to download: you sign in again (aws sso login, or the next role you assume).

How to remove it

  1. Quit aws first.
  2. In Finder, choose Go > Go to Folder (Shift-Command-G), paste the path above and press Return.
  3. Leave anything opened or changed less than 7 days ago (for a folder, its newest file counts). DiskCity waits that long too.
  4. Move only what passes these checks to the Trash.
  5. Empty the Trash to get the space back. Until then, you can still put things back.

What DiskCity does with it

DiskCity labels it as rebuildable and removes it only when you approve. It only suggests it once it hasn't been used for 7 days. It waits until aws is closed.

Sources

Checked 2026-10-24.