KSC Open API
Kaspersky Security Center API description
TotpUserSettings::ClearUserSecret2 ( long  llTrusteeId,
boolean  bAddToSetupAllowedList 
)

Clear TOTP secret for user (spl_users, ak_users only)

Parameters:
[in]llTrusteeIdTrustee id to change settings
[in]bAddToSetupAllowedListTrue - add user to 2FA Allowed list, false - do nothing with Allowed list