Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

VersionControlServer.DeleteWorkspace Method

Deletes the workspace with the specified name and owner.

Namespace:  Microsoft.TeamFoundation.VersionControl.Client
Assembly:  Microsoft.TeamFoundation.VersionControl.Client (in Microsoft.TeamFoundation.VersionControl.Client.dll)

public bool DeleteWorkspace(
	string workspaceName,
	string workspaceOwner
)

Parameters

workspaceName
Type: System.String

The name of the workspace to delete.

workspaceOwner
Type: System.String

The owner of the workspace that you want to delete. You must use the string constant RepositoryConstants.AuthenticatedUser or "." to default to the current user.

Return Value

Type: System.Boolean
Returns true if the workspace was deleted and false if the operation was canceled. If the request fails on the server, an exception occurs.

Throws an exception if the delete request failed on the server.

Community Additions

ADD
Show:
© 2015 Microsoft