site-www icon indicating copy to clipboard operation
site-www copied to clipboard

Add info on how to uninstall Dart

Open sfshaza2 opened this issue 4 years ago • 11 comments

Inspired by this issue on flutter.dev: https://github.com/flutter/website/issues/5695

sfshaza2 avatar Apr 30 '21 17:04 sfshaza2

Definitely a good idea, but may be hard to cover all possible forms of installation. With our current setup, the following cases seem the most important to cover initially:

  • [ ] Uninstalling with Chocolatey in the Windows tab on Get Dart
  • [ ] Uninstalling with apt in the Linux tab on Get Dart
  • [ ] Uninstalling Debian packages with dpkg in the Linux tab on Get Dart
  • [ ] Uninstalling with Homebrew in the macOS tab on Get Dart
  • [ ] Manually deleting SDK directory for those who manually downloaded the ZIP, perhaps in the archive page.

It would also likely be good to mention removing Dart from path for situations where the package manager isn't responsible for doing so.

We could consider a dedicated new page as well, for general tasks of uninstalling as well as cleaning up various PATH variables, tooling, etc. Also a friendly invitation back like you mentioned :)

If anyone reading this wants to take one of those specific tasks, I'd be happy to help if you have any questions and work with you for review of a PR! Let me know :)

parlough avatar Apr 30 '21 18:04 parlough

I like the way you think, @parlough!

sfshaza2 avatar Apr 30 '21 18:04 sfshaza2

Great points @parlough, I'll see if I can take this up once I finish up with the issue on flutter site, if there's no WIP on this one by then.

sameeerkashyap avatar Apr 30 '21 18:04 sameeerkashyap

There's also the removing Dart by removing Flutter case, right?

kwalrath avatar May 03 '21 16:05 kwalrath

There's also the removing Dart by removing Flutter case, right?

This could just link back to the flutter site. flutter/website#5695

sameeerkashyap avatar May 03 '21 16:05 sameeerkashyap

Absolutely.

On Mon, May 3, 2021 at 9:40 AM Sameer Kashyap @.***> wrote:

There's also the removing Dart by removing Flutter case, right?

This could just link back to the flutter site. flutter/website#5695 https://github.com/flutter/website/issues/5695

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/dart-lang/site-www/issues/3187#issuecomment-831383912, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKS4PKJFEUOHYFYG6I7V3XTTL3GXDANCNFSM4345AKRA .

sfshaza2 avatar May 03 '21 17:05 sfshaza2

@parlough where would this page go?

sameeerkashyap avatar May 08 '21 05:05 sameeerkashyap

@Sameerkash I think a few places could use additions, with perhaps the most straightforward being how to uninstall with the tools mentioned in each tab on the Get the Dart SDK page. Those could be included near the end of each tab and perhaps completed as an initial PR separate from any new pages.

image

As for the other pieces, such as removing extra items from the path, other forms of uninstall for manual installation, linking to the Flutter uninstall directions, etc I'm assuming we could create a new page as well. This could likely go in a similar place to the get-dart.md file and be linked to from the Get Dart and archive pages. Perhaps @kwalrath will have more ideas here on the contents and location.

parlough avatar May 08 '21 14:05 parlough

Like @parlough said, the uninstall page could be very similar to (and parallel to) the get-dart page. If the page starts looking too busy or you think that includes/tabs would be too hard to maintain, then we could use <summary>...<details> tags to hide unnecessary details.

I don't think we need the actual uninstall directions on the get-dart page — just information on where to find the uninstall page. (I'm always leery of including instructions/code that you don't want everyone to copy-paste!)

kwalrath avatar May 10 '21 16:05 kwalrath

Okay, I'll try and make a draft PR soon, we can build things from there

sameeerkashyap avatar May 12 '21 10:05 sameeerkashyap

Just use

choco uninstall dart-sdk

image

satya-kr avatar Jan 04 '24 15:01 satya-kr