Hero Background

Next-Gen App & Browser Testing Cloud

Trusted by 2 Mn+ QAs & Devs to accelerate their release cycles

Next-Gen App & Browser Testing Cloud

How to Uninstall Android Debug Bridge (ADB)?

To uninstall Android Debug Bridge (ADB), first stop the ADB server with adb kill-server, then delete the platform-tools folder (or uninstall the package you installed it with) and remove any platform-tools entry from your PATH. This removes the ADB tool from your computer. It is different from How to Turn Off Android Debug Bridge? on a device (which only disables USB Debugging) and from using ADB to uninstall apps. The steps below cover Windows, macOS, and Linux, plus the Android Studio SDK Manager route and how to verify the removal.

Before You Start - Kill the ADB Server

ADB runs a background daemon that holds open file handles on adb and the platform-tools directory. If you try to delete those files while the server is running, the removal can fail with a "file in use" error, especially on Windows. Stop it first:

adb kill-server
  • Unplug connected devices: disconnect any phones or tablets so nothing re-spawns the daemon mid-uninstall.
  • Close anything that uses ADB: quit Android Studio, Scrcpy, and any open terminals that may have launched the server.

Uninstall ADB on Windows

Manual Installation (Standalone platform-tools)

If you installed ADB by extracting the platform-tools ZIP, follow these pointers:

  • Delete the platform-tools folder: navigate to where you extracted ADB (for example C:\platform-tools) and delete the entire folder.
  • Open Environment Variables: search for "Environment Variables" in the Start menu and open the editor.
  • Edit the Path variable: under System variables (or User variables) select Path and click Edit.
  • Remove the platform-tools entry: delete any line that points to your platform-tools directory, then click OK to save.
  • Check for an installer entry: open Control Panel → Programs and Features and uninstall any ADB or platform-tools program if one was installed by a setup wizard.

Installed via Chocolatey

If you installed ADB through the Chocolatey package manager, uninstall it in one command (the adb package also bundles fastboot):

choco uninstall adb

Uninstall ADB on macOS

Manual or Android Studio SDK Install

Delete the platform-tools directory. On macOS, Android Studio installs the SDK under ~/Library/Android/sdk, while manual installs often sit in ~/Android/Sdk, so remove whichever path applies:

rm -rf ~/Library/Android/sdk/platform-tools
rm -rf ~/Android/Sdk/platform-tools
  • Clear the PATH exports: open ~/.zshrc or ~/.bash_profile and delete any line that adds platform-tools to PATH, then run source ~/.zshrc or open a new terminal.

Installed via Homebrew

If you installed ADB with Homebrew, uninstall the cask in one command:

brew uninstall android-platform-tools

Uninstall ADB on Linux

The command depends on your distribution and package manager. Pick the one that matches your system:

Debian / Ubuntu (apt)

sudo apt remove adb fastboot

# deep clean (purge configs and orphaned packages)
sudo apt-get --purge autoremove android-tools-adb android-tools-fastboot

Fedora / RHEL (dnf)

sudo dnf remove android-tools

Arch / Manjaro (pacman)

sudo pacman -R android-tools
  • Remove manual installs: if you extracted platform-tools by hand, delete that folder and remove the matching PATH export lines from ~/.bashrc or ~/.zshrc.

Uninstall ADB via Android Studio (SDK Manager)

If ADB came in through Android Studio and you want to remove only the ADB component while keeping the rest of the SDK, use the SDK Manager:

  • Open SDK settings: go to Settings/Preferences → Languages & Frameworks → Android SDK.
  • Switch to the SDK Tools tab: this lists each installed SDK component.
  • Uncheck Android SDK Platform-Tools: clearing this checkbox marks ADB and fastboot for removal.
  • Apply the change: click Apply, then OK, and Android Studio deletes the platform-tools component.

Prefer the command line? The sdkmanager CLI does the same thing:

sdkmanager --uninstall "platform-tools"

Verify ADB Is Removed

Open a fresh terminal or command prompt and run the version check. If ADB is gone, the command should fail:

adb version
# expected: 'adb' is not recognized (Windows) / command not found (macOS, Linux)

If adb version still prints a version number, a stray copy or a stale PATH entry remains. Track it down and clean it:

# macOS / Linux
which adb

# Windows
where adb

Note - Your Device's USB Debugging Is Separate

Uninstalling ADB from your computer does not change anything on your phone. The USB Debugging toggle in Developer Options stays exactly as it was, because that setting lives on the Android device, not on your machine. If you also want to disable debugging on the device, do it separately, see How to Turn Off Android Debug Bridge? for the steps.

Test Android Apps Without a Local ADB on TestMu AI

Removed ADB locally but still need to install APKs, debug, or run Appium tests on Android? You do not have to maintain platform-tools on your machine at all. With a Real Device Cloud you upload your APK and run it on a remote, physical Android handset straight from the browser, with logs, screen recording, and ADB-backed debugging handled in the cloud. It is a clean way to keep testing right after you have uninstalled ADB from your local setup.

Frequently Asked Questions

Does turning off USB Debugging uninstall ADB?

No. Turning off USB Debugging in Developer Options only disables the debug channel on your Android device, it does not remove the ADB tool from your computer. To uninstall ADB you have to delete the platform-tools folder or uninstall the package you installed, and clear any platform-tools entry from your PATH.

Will uninstalling ADB delete my Android SDK or Android Studio?

No. Removing ADB only deletes the platform-tools component (adb and fastboot). The rest of the Android SDK, the SDK Manager, and Android Studio remain installed. If you later need ADB again you can re-add platform-tools from the SDK Manager without reinstalling Android Studio.

How do I uninstall ADB if I installed it with a package manager?

Use the same package manager you installed it with: choco uninstall adb on Windows (Chocolatey), brew uninstall android-platform-tools on macOS (Homebrew), sudo apt remove adb fastboot on Debian/Ubuntu, sudo dnf remove android-tools on Fedora/RHEL, and sudo pacman -R android-tools on Arch/Manjaro.

How do I completely remove ADB from PATH?

On Windows, open Environment Variables, edit the Path variable, and delete any entry pointing to platform-tools. On macOS and Linux, remove the export lines that add platform-tools to PATH from your shell profile (~/.bashrc, ~/.zshrc, or ~/.bash_profile), then restart the terminal so the change takes effect.

How do I reinstall ADB after removing it?

Reinstall it the same way you would set it up the first time: download the official platform-tools bundle and add it to PATH, install it through a package manager, or open the Android Studio SDK Manager and re-check Android SDK Platform-Tools. See How to Setup Android Debug Bridge? for the full walkthrough.

Is adb kill-server required before uninstalling?

It is strongly recommended. Running adb kill-server stops the background ADB daemon and releases the file locks it holds on adb and the platform-tools folder. On Windows in particular, deleting the folder while the server is running can fail with a file-in-use error.

Related Questions

Test Your Website on 3000+ Browsers

Get 100 minutes of automation test minutes FREE!!

Test Now...

KaneAI - Testing Assistant

World’s first AI-Native E2E testing agent.

...

TestMu AI forEnterprise

Get access to solutions built on Enterprise
grade security, privacy, & compliance

  • Advanced access controls
  • Advanced data retention rules
  • Advanced Local Testing
  • Premium Support options
  • Early access to beta features
  • Private Slack Channel
  • Unlimited Manual Accessibility DevTools Tests