SmarterMail Pro™ Administration Web Services

svcUserAdmin.DeleteUser Method 

Deletes the specified user from the specified domain.

public GenericResult DeleteUser(
   string AuthUserName,
   string AuthPassword,
   string Username,
   string DomainName
);

Parameters

AuthUserName
User name with domain administrative privileges
AuthPassword
Password for AuthUserName
Username
User account to delete from domain
DomainName
Domain used for account removal

Return Value

A GenericResult instance containing the results of the DeleteUser action.

Example

using System;
using svcUserAdmin;

class svcUserAdminDeleteUser
{
 static void Main()
 {
   svcUserAdmin admin = new svcUserAdmin();
   GenericResult status = admin.DeleteUser("admin@domain.net",
                                           "alskdjfhtt",
                                           "dlindt",
                                           "domain.net");

   if(status.Result)
     Console.WriteLine ("User updated");
   else
     Console.WriteLine (status.Message);
  }
}

See Also

svcUserAdmin Class | svcUserAdmin Namespace