--remove, -rm
Part of the Command Reference.
asd --remove <name>
asd -rm <name>
Deletes an installed component’s directory under $ANDROID_HOME.
Arguments
name(required) — the package path to remove, matched exactly or as a;-prefixed group against entries in the registry.
Examples
asd --remove ndk
asd -rm build-tools
What it does
Looks up every registry entry whose path matches name, then deletes the
corresponding directory under $ANDROID_HOME for each one that’s actually
present on disk. This means asd --remove ndk removes every installed NDK
version, not just one — remove a specific version with
--fix’s pattern in reverse if you only want one
version gone (delete the specific $ANDROID_HOME/ndk/<version> directory
yourself).
Removing requires the registry (to resolve name to a path), so it will
trigger a registry download on first use just like
install.
Errors
Error: No packages matching 'foo' found in registry.
Error: No installed components found for 'ndk'.