ALM Site Administration API Type Library
DeleteDomain Method
Description
Deletes a domain.
Syntax
Visual Basic
Public Function DeleteDomain( _
   ByVal DomainName As String _
) As String
Parameters
DomainName
The domain name.
Return Type
Returns "1" on success.
Remarks
To call this function, the domain must be empty.
Example
Private Sub DeleteDomain()
    
'The following Visual Basic example deletes an empty domain.
    Dim sDomainName As String, sReply As String
    On Error GoTo err
    sDomainName = "MyDomain"
    sReply = m_SAClient.DeleteDomain(sDomainName)
    MsgBox sReply
    Exit Sub
err:
    MsgBox "Program failed:" + err.Description
End Sub
See Also