DeleteUser Method  

Remove a virtual user from the server.


object.DeleteUser( HostId, UserName )


An integer value which identifies the virtual host.
A string which specifies the user name to be deleted. Usernames are not case sensitive.

Return Value

A value of zero is returned if the virtual user was deleted. Otherwise, a non-zero error code is returned which indicates the cause of the failure.


The DeleteUser method removes a virtual user that was created by a previous call to the AddUser method. This method will not match partial usernames and wildcard characters cannot be used to delete multiple users. Usernames are not case sensitive.

See Also

AddUser Method, Authenticate Method, OnAuthenticate Event