// RemoveMailBox() // desc: Method calls PowerShellComponent command DeleteUser, deletes user from Exchange and AD Server // params: string identity - User login name // method: public // return: bool public static bool RemoveMailbox(string identity) { bool Results; PowerShellComponent.ManagementCommands objManage = new PowerShellComponent.ManagementCommands(); Results = objManage.DeleteUser(identity); objManage = null; return Results; }