9

is there a way to remove selected package (e.g. "Samples" for each API level) from command line? I'm using Linux. I'm aware of the answer Uninstalling selected parts of Android SDK on the command line but it doesn't quite cover all the topic.

Or is it safe to delete the folders without using any android tool?

Community
  • 1
  • 1
Gnafu
  • 1,591
  • 3
  • 10
  • 26
  • 1
    The Android installation is actually pretty nice about being simple file-state on disk, such that you can install packages by manually unzipping them and remove pieces you don't need and it should pretty much work, unless you actually try to make reference to something you removed. – Chris Stratton Sep 02 '14 at 15:40

2 Answers2

13

As Chris Stratton said in his comment, the answer is:

Yes, it is safe to manually delete folders in the android sdk.

Gnafu
  • 1,591
  • 3
  • 10
  • 26
1

Uninstall android-sdk:

sudo apt-get remove android-sdk

Uninstall android-sdk and it's dependent packages:

sudo apt-get autoremove android-sdk
Dharman
  • 30,962
  • 25
  • 85
  • 135
Pratik Butani
  • 60,504
  • 58
  • 273
  • 437