forked from flutter/website
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add uninstall page. Fixes flutter#5695
- Loading branch information
Showing
15 changed files
with
235 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
## Manage your Flutter SDK | ||
|
||
To learn more about managing your Flutter SDK install, | ||
check out the following resources. | ||
|
||
* [Upgrade Flutter][upgrade] | ||
* [Uninstall Flutter][uninstall] | ||
|
||
[upgrade]: /release/upgrade | ||
[uninstall]: /get-started/uninstall?tab={{os | downcase}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{% assign terminal=include.terminal %} | ||
|
||
### Remove Flutter from your Windows PATH variable | ||
{:.no_toc} | ||
|
||
To remove Flutter commands from {{terminal}}, | ||
remove Flutter to the `PATH` environment variable. | ||
|
||
1. Press <kbd>Windows</kbd> + <kbd>S</kbd>. | ||
|
||
1. Type `environment`. | ||
|
||
1. When **Edit the system environment variables** displays | ||
as the **Best match**, click **Open** under | ||
**Edit the system environment variables**. | ||
|
||
1. Click **About**. | ||
|
||
1. Click **Advanced System Settings**. | ||
|
||
1. Click **Environment Variables...** | ||
|
||
The **Environment Variables** dialog displays. | ||
|
||
1. Under **User variables for \<user\>** check for the **Path** entry. | ||
|
||
{:type="a"} | ||
1. If the entry exists, click **Delete**. | ||
|
||
1. Click **OK**. | ||
|
||
1. To enable these changes, | ||
close and reopen any existing command prompts and {{terminal}} instances. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,164 @@ | ||
--- | ||
title: Uninstall Flutter | ||
description: How to remove the Flutter SDK. | ||
toc: true | ||
os-list: [Windows, macOS, Linux, ChromeOS] | ||
--- | ||
|
||
To remove all of Flutter from your {{os}} development machine, | ||
delete the directories that store Flutter and its configuration files. | ||
|
||
## Uninstall the Flutter SDK | ||
|
||
Select your development platform from the following tabs. | ||
|
||
{% comment %} Nav tabs {% endcomment -%} | ||
<ul class="nav nav-tabs" id="base-os-tabs" role="tablist"> | ||
{% for os in page.os-list %} | ||
{% assign id = os | downcase -%} | ||
<li class="nav-item"> | ||
<a class="nav-link {%- if id == 'windows' %} active {% endif %}" id="{{id}}-tab" href="#{{id}}" role="tab" aria-controls="{{id}} {{id}}-dl {{id}}-pub" aria-selected="true">{{os}}</a> | ||
</li> | ||
{% endfor -%} | ||
</ul> | ||
|
||
{% comment %} Tab panes {% endcomment -%} | ||
<div class="tab-content"> | ||
{% for os in page.os-list %} | ||
{% assign id = os | downcase -%} | ||
|
||
{% case os %} | ||
{% when 'Windows' -%} | ||
{% assign dirinstall='C:\dev\' %} | ||
{% assign localappdata='%LOCALAPPDATA%\' %} | ||
{% assign appdata='%APPDATA%\' %} | ||
{% assign unzip='Extract-Archive' %} | ||
{% assign path='C:\dev\' %} | ||
{% assign prompt-start='C:\>' %} | ||
{% assign prompt=path | append: '>' %} | ||
{% assign terminal='PowerShell' %} | ||
{% assign rm = 'Remove-Item -Recurse -Force -Path ' %} | ||
{% capture rm-sdk %}Remove-Item -Recurse -Force -Path '{{dirinstall}}flutter'{% endcapture %} | ||
{% capture dart-files %} | ||
{{localappdata}}.dartServer | ||
{{appdata}}.dart | ||
{{appdata}}.dart-tool | ||
{% endcapture %} | ||
{% capture rm-dart-files %} | ||
{{prompt}} {{rm}} {{localappdata}}.dartServer,{{appdata}}.dart,{{appdata}}.dart-tool | ||
{% endcapture %} | ||
{% capture flutter-files %}{{appdata}}.flutter-devtools{% endcapture %} | ||
{% capture rm-flutter-files %} | ||
{{prompt}} {{rm}} {{flutter-files}} | ||
{% endcapture %} | ||
{% capture rm-pub-dir %} | ||
{{prompt}} {{rm}} {{localappdata}}Pub\Cache | ||
{% endcapture %} | ||
{% else -%} | ||
{% assign dirinstall='~/development' %} | ||
{% assign dirconfig='~/' %} | ||
{% assign path='~/development/' %} | ||
{% assign prompt='$' %} | ||
{% assign prompt-start=prompt %} | ||
{% assign rm = 'rm -rf ' %} | ||
{% assign rm-sdk = 'rm -rf ' | append: dirinstall | append: '/flutter' %} | ||
{% capture dart-files %} | ||
{{dirconfig}}.dart | ||
{{dirconfig}}.dart-tool | ||
{{dirconfig}}.dartServer | ||
{% endcapture %} | ||
{% capture rm-dart-files %} | ||
{{prompt}} {{rm}} {{dirconfig}}.dart* | ||
{% endcapture %} | ||
{% capture flutter-files %} | ||
{{dirconfig}}.flutter | ||
{{dirconfig}}.flutter-devtools | ||
{{dirconfig}}.flutter_settings | ||
{% endcapture %} | ||
{% capture rm-flutter-files %} | ||
{{prompt}} {{rm}} {{dirconfig}}.flutter* | ||
{% endcapture %} | ||
{% capture rm-pub-dir %} | ||
{{prompt}} {{rm}} {{dirconfig}}.pub-cache | ||
{% endcapture %} | ||
{% endcase -%} | ||
|
||
<div class="tab-pane {%- if id == 'windows' %} active {% endif %}" id="{{id}}" role="tabpanel" aria-labelledby="{{id}}-tab" markdown="1"> | ||
|
||
This guide presumes that you installed Flutter in `{{path}}` on {{os}}. | ||
|
||
To uninstall the SDK, remove the `flutter` directory. | ||
|
||
```terminal | ||
{{prompt}} {{rm-sdk}} | ||
``` | ||
|
||
## Remove configuration and package directories | ||
{:.no_toc} | ||
|
||
Flutter and Dart install additional directories in your home directory. | ||
These contain configuration files and package downloads. | ||
Each of the following procedures are _optional_. | ||
|
||
### Remove Flutter configuration files | ||
{:.no_toc} | ||
|
||
If you don't want to preserve your Flutter configuration, | ||
remove the following directories from your home directory. | ||
|
||
```nocode | ||
{{ flutter-files | strip }} | ||
``` | ||
|
||
To remove these directories, run the following command. | ||
|
||
```terminal | ||
{{rm-flutter-files | strip}} | ||
``` | ||
|
||
### Remove Dart configuration files | ||
{:.no_toc} | ||
|
||
If you don't want to preserve your Dart configuration, | ||
remove the following directories from your home directory. | ||
|
||
```nocode | ||
{{ dart-files | strip}} | ||
``` | ||
|
||
To remove these directories, run the following command. | ||
|
||
```terminal | ||
{{rm-dart-files | strip}} | ||
``` | ||
|
||
### Remove pub package files | ||
{:.no_toc} | ||
|
||
{{site.alert.important}} | ||
If you want to remove Flutter but not Dart, | ||
don't complete this section. | ||
{{site.alert.end}} | ||
|
||
If you don't want to preserve your pub packages, | ||
remove the `.pub-cache` directory from your home directory. | ||
|
||
```terminal | ||
{{rm-pub-dir | strip}} | ||
``` | ||
|
||
{% if os=='Windows' -%} | ||
{% include docs/install/reqs/{{os | downcase}}/unset-path.md terminal=terminal -%} | ||
{% endif %} | ||
|
||
</div> | ||
|
||
{% endfor -%} | ||
</div> | ||
{% comment %} End: Tab panes. {% endcomment -%} | ||
|
||
## Reinstall Flutter | ||
|
||
You can [reinstall Flutter](/get-started/install) at any time. | ||
If you removed the configuration directories, | ||
reinstalling Flutter restores them to default settings. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters