I would like to delete a Team Project in TFS but when required i should be able to undelete the team project. However i only seem to be able to permanently delete a team project but i have similar projects in TFS that have been deleted but can be undeleted as well on demand as in the attached screenshot:
Deleting a team project permanently removes data associated with that project from the database. You cannot recover it later.
There are three ways to delete a team project, none of them can be recovered:
Delete from TFS Web Access:
Delete from TFS administration console:
Delete with TFSDeleteProject.
After deleting the team project, we are not able to see it any more.
Related
I have tried to delete a project in TFS, but the delete iterm is not show,
Please help me to delete the project, thanks very much.
Click here to show the picture image
You are trying to delete a default Team in a team project, not a team project (The default Team is not allowed to delete). As I don't have TFS 2012 environment, I'm not sure whether TFS 2012 support deleting a team project on Web UI. You can click on DefaultCollection in the navigation area in the upper left, and check whether you can see a drop down arrow to the left of a team project name when you hover over the name with you mouse. If you could see Delete option, then click it to delete a team project on Web UI.
If you can not delete a team project from Web UI, you can use the following options:
Using the Administration Console, you can delete a team project from a team project collection:
Details, you can refer to this website: https://learn.microsoft.com/en-us/azure/devops/organizations/projects/delete-project?view=tfs-2013&tabs=browser#delete-a-project-1
You can use the TFSDeleteProject command line tool to delete a team project:
TFSDeleteproject [/q] [/force] [/excludewss]/collection:URL TeamProjectName
Details, you can refer to this website: https://learn.microsoft.com/en-us/azure/devops/server/command-line/tfsdeleteproject-cmd?view=tfs-2013
In the past, we seem to have created a TFS repository that was not part of a project. It seems that this is no longer supported by TFS in recent versions.
After updating TFS 2013 to 2015 and then 2017 we did not immediately notice the problem, but looking in the Collection Management screen on the web portal shows that the "Project" (which is not a project) is marked in a "Deleting" status.
The Microsoft page about this says that if you want to keep the code, no action needs to be taken. That "Deleting" status worries me however.
Is there any way to add an existing repo to a project? I can create a new project. I can add a new repo to a project. Can I add an existing repo to a project?
Alternatively, can I "Un-Deleting" that repo somehow?
That page have described this very clear:
Otherwise, no action is required. Placeholder team projects are
hidden in Web Access and Team Explorer in Visual Studio. Therefore,
they have no significant effect on day-to-day usage. As with any
other deleted item in Version Control, you can still access the
corresponding project in Source Control Explorer if the Show/Hide
Deleted Items button is enabled.
As you said, Placeholder team projects are not real team projects. When you delete a real team project, it will permanently removes data associated with that project from the database. You cannot recover it later.
They are just as deleted folders/items in TFS, you could undelete them in Visual Studio Source Control. Just select the deleted folders and right click it select undelete , and check in pending changes. Then you could get/download all files in the repo to local. Create a new team project, add files to the project, finally delete the particular placeholder project.
Since there is no way to import deleted files to either a existing project or a new project. Above is a safety workaround, the only disadvantage is it will lose the source control history of those folders. Otherwise, you could also take no action as the page suggested, the Placeholder team project will not be deleted. If you encounter any problem about this, you could contact the TFS support.
I have a Team Project Collection in TFS 2017 that is unused. It was created back, when TFS was new in our Company as a test. So there has never been real Code Checked in or anything. So I want to just delete. I couldn’t find out, how this works.
To delete a collection:
Detach the collection,
Delete the collection database
Delete the SharePoint site collection that supported the deleted
collection.
Please see Detach or delete a team project collection for details, it's also applied to TFS 2017.
This is a high-level administrative task that can only be performed by logging into the Application Tier server and using the TFS administration tool.
I used before free TFS from Visual Studio Online. I worked fine, I added some projects to TFS and did check-in and check-out without problem. But now it just stop working. When I try to check-in new projects, I get the following error:
The following issues were encountered during check in: TF10169:
Unsupported pending change attempted on team project folder $/Code.
Use the Project Creation Wizard in Team Explorer to create a project
or the Team Project deletion tool to delete one.
What is Project Creation Wizard? How I can run it? And what is happened with my account? I see the message:
Your account is an Early Adopter account. In 31 days your account will
revert to a standard account.
Maybe that's why it's not working anymore?
You cannot create or delete folders at the top-level of the source tree. (Eg, $/Code).
The top level of the source tree is reserved for Team Projects, which must be created and deleting specially. If you want to delete $/Code, you will need to undo your pending change that deletes it and instead delete it using the Project Creation Wizard or the TfsDeleteProject command.
I want to use a free tfs account for a sample project. So i created a free account on visualstudio.com and created 2 collections. And i want delete one them but i cannot delete it.
There is no any members in the collection. It doesn't allow me to delete. As you see on the screenshot, delete button is disabled. Also Is there any way that if i've an admin account, is possible to change or delete collections from visual studio?
I'm not sure how/if it applies to free TFS versions, but the following link shows how to delete Team Project Collections in general. Looks like doing it via command line tool is the way to go.
https://rules.ssw.com.au/do-you-know-how-to-delete-a-team-project-collection
Here is the main part:
On TFS server, open Administrative Command Prompt and change to TFS Tools Directory.
%programfiles%\microsoft team foundation server[versionnumber]\tools
Type the command:
TFSConfig Collection /delete /collectionName:[COLLECTION NAME]
You're mixing collections and team projects. You cannot create a collection in Team Foundation Service as of now. That may or may not change in the future. When you sign up, there is one collection created for you and that one will contain your team projects and you will need to live with that one. If you have a need to have another collection then you can sign up under another account. You can however delete team projects but not from the web UI. You will need to use the command line tool DaveShaw gave a link for. You can also check out the blog post below:
How to delete a team project from Team Foundation Service (tfs.visualstudio.com)
You look like you are trying to deleted a "Team" from a "Team Project"? You have to have at least one "Team" in a "Team Project", and that will have the same name as the "Team Project".
If you are wanting to delete the entire "Team Project" (containing all the Work Items, Source, Builds, etc), you can do it using the tfsdeleteproject command line tool.
Even we had similar issue. Unfortunately we had deleted a Collection DB without Stopping and Detaching the collection from TFS admin console in TFS 2018. Later we tried to detach the collection, but no luck. Initially we had ignored this issue since it was test TFS collection and that too in QA server. Later during up-gradation to Azure DevOps 2019 server we faced issue with Existing Deployment option. we couldn't complete the upgradation. we followed below steps to fix the issue:
**1. Restored the VM/QA TFS server with VM snapshot backup created before upgradation.
Run below command to remove the deleted collection from TFS Config DB.
"TFSConfig Collection /delete /collectionName:[COLLECTION NAME]"
Stop TFS services and done upgradation to Azure DevOps Server 2019 successfully.**