Skip to main content

4 docs tagged with "clear-azure-cli-data"

View all tags

Clear Azure CLI cache

This script deletes cached Azure CLI objects. Cleaning cache does not remove your credentials, so you'll keep your session and be logged in.

Clear Azure login data (this will log you out of the current session)

This script cleans the login data in three steps: 1. "az logout": It deletes the current authentication token and subscription ID. It only logs out the selected/current user. 2. "az account clear": It clears all other subscriptions from the CLI's local cache. It also logs out all users. 3. Clear all access tokens: It removes the ADAL token cache file. These are stored tokens from the Active Directory OAuth 2.0 code flow.