KSC Open API  13.1
Kaspersky Security Center API description
HstAccessControl::DeleteRole ( int  nId,
boolean  bProtection 
)

Deletes the user's role.

Parameters:
nId(int) role ID.
bProtection(boolean) if true, then it checks that the user does not reduce his or her rights.