ALM Site Administration API Type Library
RemoveProject Method
Description
Removes a project from the list of projects in a domain without deleting the project database.
Syntax
Visual Basic
Public Function RemoveProject( _
   ByVal DomainName As String, _
   ByVal ProjectName As String _
) As String
Parameters
DomainName
The domain name.
ProjectName
The project name.
Return Type
Returns "1" on success.
Remarks
The project must be deactivated before calling this function.
Example
Private Sub RemoveProject()

'The following Visual Basic example removes a project
' from the domain.
    Dim sDomainName As String
    Dim sProjectName As String
    Dim sReply As String

    On Error GoTo err
    sDomainName = "MyDomain"
    sProjectName = "MyProject"

sReply = m_SAClient.RemoveProject _
        (sDomainName, sProjectName)

    MsgBox sReply
    Exit Sub
err:
    MsgBox "Program failed:" + err.Description
End Sub
See Also