Reputation: 1
In the command prompt, I am typing:
tf workfold /unmap /workspace:xxx dev.azure.com/xxx/Mace
as I try to remove a project from an organization.
I also try:
tf workfold /unmap /workspace:xxx dev.azure.com/yyy/Mace
In both cases, I am getting:
Unable to determine the Source Control Server
substituting the computer name for dev.azure.com/xxx
didn't help, either.
xxx
is the development organization, yyy
is for production.
I went the tf.exe
route because I kept on getting:
The path c:\wsg_winservices\WinApps\Mace is already mapped in workspace xxx
Nothing helped here as I used TF.Exe
as a last resort for removing a project from a workspace:
xxx
(dev.azure.com
) and then deleted it.How do you solve this? How do you remove the mapping from workspace xxx
?
Upvotes: 0
Views: 395
Reputation: 19471
To remove a project from an organization,you can try to use Projects - Delete rest api.
DELETE https://dev.azure.com/{organization}/_apis/projects/{projectId}?api-version=5.1
To get project id , use Projects - List rest api.
GET https://dev.azure.com/{organization}/_apis/projects?api-version=5.1
From the response , you can get projectId:
Sample:
{
"count": 3,
"value": [
{
"id": "eb6e4656-77fc-42a1-9181-4c6d8e9da5d1",
"name": "Fabrikam-Fiber-TFVC",
"description": "Team Foundation Version Control projects.",
"url": "https://dev.azure.com/fabrikam/_apis/projects/eb6e4656-77fc-42a1-9181-4c6d8e9da5d1",
"state": "wellFormed"
},
...
}
Upvotes: 0