ALM Site Administration API Type Library
DeleteProject Method
Description
Deletes a project.
Syntax
| Visual Basic |
|---|
Public Function DeleteProject( _ ByVal DomainName As String, _ ByVal ProjectName As String, _ ByVal AdminName As String, _ ByVal AdminPassword As String _ ) As String |
Parameters
- DomainName
- The domain name.
- ProjectName
- The project name.
- AdminName
- The database administrator user name.
- AdminPassword
- The database administrator password.
Return Type
Returns "1" on success.
Remarks
The project must be deactivated before calling this function.
Example
Private Sub DeleteProject() 'The following Visual Basic example deletes a project. Dim sDomainName As String Dim sProjectName As String Dim sReply As String On Error GoTo err sDomainName = "MyDomain" sProjectName = "MyProject" sReply = m_SAClient.DeleteProject _ (sDomainName, sProjectName, "Admin", "Swordfish") MsgBox sReply Exit Sub err: MsgBox "Program failed:" + err.Description End Sub
See Also

