Any way to do this either via a utility, command-line, or otherwise? I regularly have my headphones and moused paired which causes the bluetooth service to crash nearly daily. Sometimes I can just repair the devices but other times the service breaks completely. When that happens I have to reboot; very annoying indeed.
migrated from superuser.com May 9 '11 at 2:59
The way to systematically remove pairing records and HID devices is to use the Bluetooth Explorer that comes with Xcode 3. (as of today, early June 2011 - this is something available at no cost if you agree to the terms of the free developer program. It might also be bundled with Xcode 4 - available with paid download or paid mac developer program - but I can't vouch for that) You can also browse the developer documentation for free to learn more about bluetooth implementation.
The explorer has a detailed window with many settings to automate resetting devices for testing. Here is a portion of the window showing that not only are the local mac settings cleared, it will reach out to Apple Bluetooth devices and reset their internal state as well.
Since bluetooth has to start very soon in the boot process (and is part of the setup assistant since new macs that have no accounts have to know how to set up Bluetooth keyboards and mouse out of the box) it's not just a simple user preference file but instead a system level preference and stored in several locations.
You will be able to make your mac factory fresh to test bluetooth with the Bluetooth Explorer.
There's a command-line tool for the bluetooth service, you could try if it can help you.
The tool can be found here
I found the answer :)
This should first kill the service if it's still on and the second enables it again.
Go to the Activity Monitor, and under process names there should be one called "blued", click it, then "Quit Process", Force Quit, then the bluetooth service should have restarted on its own.