removeUser

[ Function ]

public static removeUser(
    userName: string,
    callback: null | ((this: void, data: TcHmi.IResultObject) => void) = null
): TcHmi.IErrorDetails;

Deletes a user.

Parameter

Name

Type

Description

userName

string

Name of the user

callback [ optional ]

(data: TcHmi.IResultObject) => void, null

Asynchronous callback function that is triggered once the action is completed.

Return value

Type

Description

TcHmi.IErrorDetails

Returns confirmation as to whether the operation was successfully sent.

removeUser 1:

Available from version 1.10.1018.48

Sample - JavaScript

TcHmi.Server.UserManagement.removeUser (
    'newUser',
    function(data) {
        if (data.error === TcHmi.Errors.NONE) {
            // Success
        } else {
            // Error
        }
    }
);