Delete Role

To delete a user role, use the following request:

DELETE /roles/:id.xml
DELETE /roles/:id.json

XML Request Example

curl -i -X DELETE -u user:userpass --url http://onapp.test/roles/2.xml

JSON Request Example

curl -i -X DELETE -u user:userpass --url http://onapp.test/roles/2.json

This returns an HTTP 204 response if the role is deleted, or HTTP 404 if the user with the specified ID isn't found.