Deletes the specified workspace. All pending changes are canceled and all LocalVersion entries are removed from the server.
Namespace:  Microsoft.TeamFoundation.VersionControl.Server
Assembly:  Microsoft.TeamFoundation.VersionControl.Server (in Microsoft.TeamFoundation.VersionControl.Server.dll)
Syntax
'Declaration
Public Sub DeleteWorkspace ( _
    requestContext As TeamFoundationRequestContext, _
    workspaceName As String, _
    ownerName As String _
)
public void DeleteWorkspace(
    TeamFoundationRequestContext requestContext,
    string workspaceName,
    string ownerName
)
public:
void DeleteWorkspace(
    TeamFoundationRequestContext^ requestContext, 
    String^ workspaceName, 
    String^ ownerName
)
member DeleteWorkspace : 
        requestContext:TeamFoundationRequestContext * 
        workspaceName:string * 
        ownerName:string -> unit
public function DeleteWorkspace(
    requestContext : TeamFoundationRequestContext, 
    workspaceName : String, 
    ownerName : String
)
Parameters
- requestContext 
 Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContext- The request context. 
- workspaceName 
 Type: System.String- Name of the workspace. 
- ownerName 
 Type: System.String- User name including domain. 
.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.