sudo rm /usr/local/bin/ykman
sudo rm -r /usr/local/ykman
When running a ykman otp command, an error such as
Failed to open device for communication: -536870174 can indicate that access
to the OTP (keyboard) USB interface is not permitted.
The terminal application running ykman needs the Input Monitoring
permission, not the ykman executable itself. If macOS does not prompt you,
add your terminal under System Settings → Privacy & Security → Input
Monitoring. On older macOS versions, use System Preferences → Security &
Privacy → Privacy → Input Monitoring.
To remove the executable symlink and installation directory created by the Yubico .pkg installer:
sudo rm /usr/local/bin/ykman
sudo rm -r /usr/local/ykman
These paths apply only to the .pkg installation. Use the corresponding package manager to uninstall a Homebrew, MacPorts, Cargo, or Python installation.
FreeBSD is not officially supported or maintained by Yubico. Third-party ports and packages may still provide the Python-based 5.x release; their availability does not establish support for the Rust rewrite. Version 6 installation and device access on FreeBSD have not been verified here.
For package and ports information, see the FreeBSD Handbook. Consult your package maintainer’s instructions for the packaged version and its USB driver requirements.