Clear Azure CLI data
- Linux onlyThis script improves your privacy on Linux
- Multiple actionsThis page belongs to a category, containing some changes with similar goal.
- Impact: Minimum
System Functionality / Data Loss Risk: Low
This action improves privacy with minimal impact when you run the recommended script.
- Bash (Shell script)These changes use Linux system commands to update your settings.
- 4 scripts
- No subcategories
- Sudo/root requiredThis script requires privilege access to do the system changes
- IrreversibleYou can restore parts of this action (revert back to the original behavior) using the application.
Overview
The Azure command-line interface (Azure CLI) is a set of commands used to create and manage Azure resources 1. With an emphasis on automation, the Azure CLI is accessible across all Azure services and is made to work quickly with Azure 1.
Sources
- Azure Command-Line Interface (CLI) - Overview. Microsoft Learn. learn.microsoft.com. (2022).
Original: https://learn.microsoft.com/en-us/cli/azure
Archived: https://web.archive.org/web/20221029142932/https://learn.microsoft.com/en-us/cli/azure/
Apply Now
Choose one of two ways to apply:
- Normal
- High
Normal — Everyday Privacy (Enterprise-Grade)
- Recommended for all
- Safe for daily use
- No impact on system stability
Read more about Normal and other protection levels
High — Advanced Privacy
- For advanced privacy-conscious users
- May affect some features
Read more about High and other protection levels
Help
How to apply "Clear Azure CLI data" using script
- ≈ 3 min to complete
- Tools: Web Browser
- Difficulty: Medium
- ≈ 6 instructions
- 1
Choose protection
Choose one of the options with different impact levels:
Normal
Some safe changes minimal system impact.High
Some potentially impactful changes with moderate system impact.
- 2
Download
Download the script file by clicking on thebutton above. - 3
Keep the file
If warned by your browser, keep the file. - 4
Open
Open the downloaded file. - 5
Exit
Once it's done, press any key to exit the window. - 6
Restart
Restart your computer for all changes to take effect.
Apply with privacy.sexy
Guided, automated application with safety checks- Recommended for most users
- Includes safety checks
- Shows the code
- Free
- Open-source
- Popular
- Offline/Online usage
Help
How to apply "Clear Azure CLI data" using privacy.sexy
- ≈ 3 min to complete
- Tools: privacy.sexy
- Difficulty: Simple
- ≈ 4 instructions
- 2
Choose script
- Search for the category name: Clear Azure CLI data
- Check the category by clicking on the checkbox of the category.
Applying Normal to limit the impact.
- 3
Run
Click on ▶️ Run button at the bottom of the page.This button only appears on desktop version (recommended). On browser, use 💾 Save button.
Explore This Guide
- 4 Privacy settings
Choose what to protect based on your needs: Click any option to learn more about what it does. Each change can be applied and reversed individually.
- Some settings and commands may require technical knowledge to apply correctly.
- Most users find the Normal protection above sufficient.
Clear Azure CLI telemetry data
The Azure CLI stores telemetry in the "telemetry" directory and "telemetry.txt", "logs/telemetry.txt" files.
Clear Azure CLI logs
Azure CLI saves logs in the "logs" directory.
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.
Similar Guides
Wider Goal
Guides below includes this guide to achieve a wider goal.See other more general settings that includes this one as one of its actions.
These plans combine multiple privacy settings, including this one, for stronger protection.
- Clear data from development tools
- Clear third-party application data
- Privacy cleanup
This category includes tools that are typically used by developers, also known as "developer tools". These tools allow a developer to create, test, and debug softw...
Scripts in this category clear data for third-party applications installed on the operating system. Third-party applications are not typically distributed as part ...
These scripts allow you to increase privacy by deleting collected data about you and your behavior.
Same Goal
Other guides in Clear data from development toolsSee settings that are in the same category as this guide.
Using other actions in the same category may help you achieve your goal better.
About the Creators
These people have authored this documentation and written its scripts:
Reviewed By
This guide has undergone comprehensive auditing and peer review:Expert review by undergroundwires
- Verified technical accuracy and editorial standards
- Assessed system impact and user privacy risks
Public review by large community
- Privacy enthusiasts and professionals peer-reviewed
- Millions of end-users tested across different environments
History
We continually monitor our guides, their impact and all other privacy options. We update our guides when new information becomes available. On every update, we publicly store who made the change, what has been changed, why the change was made and when the change was made.