| SAapi Object : DeleteUser Method | 
| Visual Basic | 
|---|
| Public Function DeleteUser( _ ByVal UserName As String _ ) As String | 
Private Sub DeleteUser() 'The following Visual Basic example deletes a user. Dim sReply As String On Error GoTo err sReply = m_SAClient.DeleteUser("alex_td") If (sReply = "1") Then MsgBox "User Deleted" End If Exit Sub err: MsgBox "Program failed:" + err.Description End Sub