Delete User Yubikey

To delete a Yubikey that is assigned to a certain user, apply the following request:

DELETE /users/:user_id/yubi_keys/:yubikey_id.xml
DELETE /users/:user_id/yubi_keys/:yubikey_id.json

XML Request Example 

curl -i -X DELETE  -H 'Content-type: application/xml' -u user:userpass http://onapp.test/users/12/yubi_keys/13.xml

JSON Request Example 

curl -i -X DELETE  -H 'Content-type: application/json' -u user:userpass http://onapp.test/users/12/yubi_keys/13.json

Be careful when deleting a YubiKey as it will no longer be possible to log in using that Yubikey unless you add it again to the system.