IamUtil.deleteUser()

DESCRIPTION

Delete the specified user from device.

This function blocks until it has succeeded.

DECLARATION

    public abstract void deleteUser(Connection connection, String username)

PARAMETERS

connection:
An established connection to the device
username:
Username of the user to delete

THROWS EXCEPTIONS

IamException:
with IamError USER_DOES_NOT_EXIST if the specified user does not exist on the device
IamException:
with IamError BLOCKED_BY_DEVICE_CONFIGURATION if the device configuration does not allow deleting this user (the IAM:DeleteUser action for the IAM:Username attribute is not allowed for the requesting role)
IamException:
with IamError IAM_NOT_SUPPORTED if Nabto Edge IAM is not supported by the device