Hi @Vasya Pupkin ,
Considered user-specific and not directly tied to the installation of the SDK itself, the .dotnet
folder typically stores user-level data such as environment variables, global tools, and configurations that may persist beyond the installation of the SDK.
Some reasons why the uninstaller does not remove the folder include:
User-Specific Settings: The folder may contain settings or global tools installed by the user that are independent of the SDK version. Automatically deleting the folder could result in data loss or disruption of other user-installed tools.
Avoiding Accidental Data Loss: Uninstallers are generally cautious about removing user-specific directories to prevent accidentally deleting data that might still be in use. This approach reduces the risk of unintended consequences, especially if the user has multiple SDK versions installed.
Shared Use: If the .dotnet
folder is being used by multiple versions of the SDK or by other .NET-related tools, removing it could cause problems for other applications or SDKs still in use.
If you want to clean it up manually after uninstalling the SDK, you can safely delete the .dotnet
folder if you're sure that it is no longer needed.
Best Regards.
Jiachen Li
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.