Ubuntu – How to unpair bluetooth device from the command line

bluetooth

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.

Best Answer

first of all start your Bluetooth from System settings.

Open terminal and type:

bluetoothctl

then you will see the list of devices you have paired with and their corresponding MAC address. To un-pair a device type:

remove aa:bb:cc:dd:ee:ff

replace aa:bb:cc:dd:ee:ff with the MAC address of the device to un-pair.

there is no un-pair commmand

Related Question