Skip to main content

Remove an administrator from a computer's inventory

DELETE 

/computers/:computerId/admins

Removes an account from the inventory.

The account is identified in the request body (not the query string) by sid, or by id (user, group, or computer object id); sid wins when both are sent. A DELETE with no body, or with the id only in the query string, is 422 Missing required parameters. On Linux computers the account's sudoers entries are removed as well. There is no protection for the built-in administrator: removing the default admin account succeeds with 200.

Returns 409 Administrator not in inventory when the account is not in the inventory.

Required role: superadmin or admin.

Request​

Responses​

Administrator removed.