How do you unpair a bluetooth device from the command line?
I was able to pair my computer with an Android phone via bluetoothctl
, but there doesn't seem to be any "unpair" option. Even though I removed the pairing on the phone, running paired-devices
still lists it. I've tried running disconnect
and remove
but they say my device doesn't exist.
first of all start your Bluetooth from System settings.
Open terminal and type:
then you should see the list of devices you have paired with and their corresponding MAC address. If you do not, type:
To un-pair a device type:
replace
aa:bb:cc:dd:ee:ff
with the MAC address of the device to un-pair.there is no un-pair commmand
In case somebody looks for an up to date answer. The interface of
bluetoothctl
has changed a bit. The following answer is valid for Ubuntuu 20.04 LTS:To unpair, now do the following: Open the bluetooth command line by entering
in the command line. After this you get a list of all paired bluetooth devices by entering
paired-devices
Now you can remove pairing of the desired devices with
remove mac:id
and control the result with executing `paired-now you can leave the bluetooth command line by entering
exit