This is used to delete a team project folder.
Namespace:  Microsoft.TeamFoundation.VersionControl.Server
Assembly:  Microsoft.TeamFoundation.VersionControl.Server (in Microsoft.TeamFoundation.VersionControl.Server.dll)
Syntax
'Declaration
Public Function DeleteTeamProjectFolder ( _
    requestContext As TeamFoundationRequestContext, _
    teamProject As String, _
    teamProjectUri As String, _
    startCleanup As Boolean, _
    deleteWorkspaceState As Boolean _
) As Boolean
public bool DeleteTeamProjectFolder(
    TeamFoundationRequestContext requestContext,
    string teamProject,
    string teamProjectUri,
    bool startCleanup,
    bool deleteWorkspaceState
)
public:
bool DeleteTeamProjectFolder(
    TeamFoundationRequestContext^ requestContext, 
    String^ teamProject, 
    String^ teamProjectUri, 
    bool startCleanup, 
    bool deleteWorkspaceState
)
member DeleteTeamProjectFolder : 
        requestContext:TeamFoundationRequestContext * 
        teamProject:string * 
        teamProjectUri:string * 
        startCleanup:bool * 
        deleteWorkspaceState:bool -> bool
public function DeleteTeamProjectFolder(
    requestContext : TeamFoundationRequestContext, 
    teamProject : String, 
    teamProjectUri : String, 
    startCleanup : boolean, 
    deleteWorkspaceState : boolean
) : boolean
Parameters
- requestContext 
 Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContext- The request context. 
- teamProject 
 Type: System.String- The team project to delete. 
- teamProjectUri 
 Type: System.String- The URI of the team project. 
- startCleanup 
 Type: System.Boolean- True if the project folder should be removed immediately. 
- deleteWorkspaceState 
 Type: System.Boolean- True if local version rows, pending adds, and working folder mappings should be removed under this folder. 
Return Value
Type: System.Boolean
True if the operation succeeded and false if it was not successful.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.