Thank you both, Ravi and Barry, this helped. -----Ursprüngliche Nachricht----- Von: Ravi Minnikanti [mailto:ravichandraminnikanti@xxxxxxxxx] Gesendet: Donnerstag, 5. April 2018 07:07 An: Libor Peltan <lpeltan@xxxxxxxxxxxx>; linux-bluetooth@xxxxxxxxxxxxxxx Betreff: Re: How to un-pair a device via DBus You can use RemoveDevice method from org.bluez.Adapter1 interface. See https://git.kernel.org/pub/scm/bluetooth/bluez.git/tree/doc/adapter-api.txt -Ravi On 04-04-2018 21:10, Libor Peltan wrote: > Hello, > I'm asking just for a hint, how to do stuff, as I'm probably missing something obvoius. > > My application controls all bluetooth events and options via DBus interface. I already use Connect/Disconnect methods of devices, their Trusted property etc., as described here: > https://git.kernel.org/pub/scm/bluetooth/bluez.git/tree/doc/device-api > .txt > > However, when I call CancelPairing method, I always receive DoesNotExist error. > > My intention is to remove a paired device from the devices list, or at least mark is as "not paired", so that the device must pair again before anything else. > > Please note that setting the Paired property to "off" does not work as this property is read-only. > > Also the solution of deleting the device's directory is not a good option for me as the bluetooth daemon would probably need to be restarted. > > How to invoke device removal or un-pair via DBus ? > > Thanks for any answers! > Libor Peltan > > -- > To unsubscribe from this list: send the line "unsubscribe > linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx > More majordomo info at http://vger.kernel.org/majordomo-info.html > ��.n��������+%������w��{.n�����{����^n�r������&��z�ޗ�zf���h���~����������_��+v���)ߣ�