Delete team project from Visual Studio Team Services

Visual Studio-2012TfsAzure DevopsTeam Project

Visual Studio-2012 Problem Overview


I am using Team Services on domain visualstudio.com and I need to delete one project, I found out that I need to use command prompt to delete projects, but when I tried the script it seemed that it doesn't work

My Script is,

TfsDeleteProject 
  /force collection:https://mytfs.visualstudio.com/DefaultCollection MyProject

My first mistake was that I didn't append DefaultCollection to the URL, but now I get error that I don't have privileges.

Visual Studio-2012 Solutions


Solution 1 - Visual Studio-2012

Thanks to @Christopher I was able to make the script work.

You can use the following command from the "Developer Command Prompt":

TfsDeleteProject /collection:https://mytfs.visualstudio.com/DefaultCollection MyProject

Printscreen of command prompt with working script

Solution 2 - Visual Studio-2012

You can now do it via visualstudio.com

  1. Open the administration context for the team project collection by choosing the gear gear icon.

admin 2. Open the action menu menu for the team project that you want to delete.

enter image description here

If you don’t see the actions icon action menu, either you’re not accessing VSTS or you’re not a member of the Project Collection Administrators group. 3. You must type the name of the team project in order to initiate the delete operation.

delete project

Solution 3 - Visual Studio-2012

  1. Open “Developer Command Prompt” under “Program Files>Microsoft Visual Studio” or in Windows 8 type “Developer“.

  2. In the command prompt, use this command template below to delete your project from TFS. Replace the YourTFSName to yours and also the ProjectName to the name of your project.

     TfsDeleteProject /collection:https://YourTFSName.visualstudio.com/DefaultCollection ProjectName
    
  3. Hit Enter and then Y if you are prompted for confirmation.

  4. Done. Double check by login to your TFS online.

From http://bizvise.com/2013/03/08/how-to-delete-team-project-from-my-team-foundation-service-tfs-default-collections/

Solution 4 - Visual Studio-2012

Although the accepted answer is absolutely correct and very clear, I managed to get lost and run into that 'grayed out Delete button' issue and just wanted to share what I was doing wrong.

For the folks having issue with grayed out delete button, make sure that you are inside 'View the collection administration page' (as shown in the accepted answer), not inside the project itself.

If the last breadcrumb on the top of your VS Team Services is the name of the project, you are at the wrong place (it looks similar). Here the Delete button (appears on right clicking the project name) will be grayed out.enter image description here

If you click the link that says 'View the collection administration page' after clicking the Settings(gear), you will be at the right place.enter image description here

enter image description here

Solution 5 - Visual Studio-2012

if your project name have space, you must use "MyProject name" TfsDeleteProject /collection:https://mytfs.visualstudio.com/DefaultCollection "MyProject name"

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
Questionzdarsky.peterView Question on Stackoverflow
Solution 1 - Visual Studio-2012zdarsky.peterView Answer on Stackoverflow
Solution 2 - Visual Studio-2012artfulhackerView Answer on Stackoverflow
Solution 3 - Visual Studio-2012JeeShen LeeView Answer on Stackoverflow
Solution 4 - Visual Studio-2012anishView Answer on Stackoverflow
Solution 5 - Visual Studio-2012OhiaView Answer on Stackoverflow