Delete a team project

Visual Studio Team Foundation Server 2013

If you find that you have a team project you no longer use, you can delete it. Deleting a team project helps simplify the navigation to team projects that are in use.

Caution noteCaution

Deleting a team project permanently removes data associated with that project from the database. You cannot recover it later. Therefore, you should save team project data that you might want to access later.

You can delete a team project from Visual Studio Online or from an on-premises deployment of Team Foundation Server (TFS).

Delete a team project from Visual Studio Online

  1. Open the administration context for the team project collection by choosing the Settings Icon (Team Web Access) gear icon. Open the Context Menu Icon context menu for the team project that you want to delete.

    Delete link in context menu for team project

    If you don't see the context icon (Context Menu Icon), either you're not accessing Visual Studio Online or you're not a member of the Project Collection Administrators group. For on-premises team projects,

go to the next section. Otherwise, go here to learn how to get added to the Project Collection Administrators group.
  • You must select the check box in order to initiate the delete operation.

    Select the check box and click Delete Project
  • Delete a team project from Team Foundation Server (on-premises)

    Using the administration console, you can delete a team project from a team project collection. Afterwards, you'll need to manually delete any associated reports and SharePoint project portal. Or, you can use the TFSDeleteProject command line tool to delete all artifacts.

    1. If you're not a member of one or more of the following administrator groups, get those permissions now:

      • Team Foundation Administrators group (required).

      • SQL Server System Administrators group (required).

      • Farm Administrators group for SharePoint Products (required when your deployment uses SharePoint Products).

    2. Open the administration console for TFS and delete the team project from its team project collection.

      Delete link for team project in TFS Admin Console
    3. Choose whether to delete external data associated with the team project and then initiate the delete action.

      Choose external data to delete
    4. (Optional) To review the status of the delete action, open the Status tab.

      To review the details of the delete action, you can open the log file from either the Status tab or Logs tab.

    Save team project data

    Make sure that any project and its data are not needed before you delete it. If you have any concerns, save data when there is a possibility that you will need later.

    Save data stored on Visual Studio Online

    You can use the following procedures to save data that users most care about, such as source code, build data, and work items.

    • Source code and custom build templates: You can download your files as a zip file.

      Download source code for Team Foundation Service

         

      This process doesn't save any change history or links to other artifacts.

      If you use Git, clone your repositories to retain the full project history and all the branches.

    • Build data: To save logs and data in your drop build folders, see View build results.

    • Work item tracking data: Create a work item query and open it using Excel. Save the Excel spreadsheet.

      This process doesn't save any attachments, change history, or links to other artifacts.

    Save data stored on Team Foundation Server

    You can easily save data stored for a team project collection by making a backup of the database. Or, you can use the same operations described earlier in

    Save data stored on Visual Studio Online.

    Q & A (for on-premises deployments only)

    Q: How do I manually delete reports that remain after the project is deleted?

    A: If your on-premises team project used reporting, and you didn't choose to delete external artifacts, you can delete the reports using SQL Server Report Manager. From the team project collection page, delete the folder that corresponds to the deleted team project.

    Delete link in context menu on Reports page

    Q: How do I remove the team project portal?

    A: If your on-premises team project had a team project portal, all links to that portal will be removed from TWA and Team Explorer, but the SharePoint site or website that acted as the portal will not be deleted. If you want to delete the portal, you must do so manually after the project has been deleted. See How to: Create, Edit, and Delete Windows SharePoint Services Sites.

    What should I do if the delete action doesn't finish?

    A: For on-premises deployments, review the status and log files for the delete action. Open the Status tab and for Deleted, review the additional information in parentheses, and take the indicated action.

    • (Processing) means that the process has started and is in progress.

    • (Pending) means that the deletion process has started from a client application. The deletion might be in progress or might have failed. Because the process was started from a client application, the server cannot accurately report the status of the deletion.

      If a project deletion remains pending for a long time, try to delete the project again from the administration console.

    • (Failed) means that the deletion process started but did not successfully finish. The log file will contain specific information about the failure.

      Review the information about the failure, and then try to delete the project again.

      If partial data remains, you can also use the TFSDeleteProject command line tool.