|
STEP 1
|
 (Enlarge)
|
- A team member (one which has full control over the team project "test4") attempts to delete "test4" from Visual Studio 2008
- The team member finds that it is easy to remove "test4" from the Team Explorer window. The only problem is, it does not disappear from the Source Control Explorer window
- The team member attempts to delete the project by right-clicking on it from the "Folders" pane of the Source Control Explorer window only to discover that the delete option is greyed out
- You, as the TFS server administrator, are called in to remove that team project
|
|
STEP 2
|
 (Enlarge)
|
- You try to remove the team project since you heard of "tfsdeleteproject.exe", a command-line tool
- You access the TFS 2008 Server box itself as the server administrator
- From the command-line you go to: Program Files\Microsoft Visual Studio 9.0\Common7\IDE
- You run tfsdeleteproject /server:TFS test4 where "TFS" is the name of your TFS box and "test4" is the name of the team project that you want to remove
- You confirm that you want to really delete the team project
- You get the error "You are not authorized to access..."
|
|
STEP 3
|
 (Enlarge)
|
- The account that you logged into the TFS 2008 Server with (even if it may have server administrator-level priviledges on the server box itself, it is not necessarily recognized as having sufficient permissions with TFS or SharePoint which tfsdeleteproject.exe interacts with)
- So, what you need to do is to add the account to the Team Project that you want to delete
- You need to get into SharePoint Services. Type in "http://tfs/Sites/test4/_layouts/user.aspx" where "tfs" is the name of your TFS box and "test4" is the name of the team project you want to remove
- You should get an error message as shown
|
|
STEP 4
|
 (Enlarge)
|
- Click on the text link "Sign in as a different user"
- Login with the TFS Service Account
|
|
STEP 5
|
 (Enlarge)
|
- After logging in, for the team project "test4" you will see a Permissions page
- While the user who created the team project "test4" inside of Visual Studio 2008 (on their local computer) is listed as having full control they, by default cannot delete the team project they created inside of Visual Studio 2008. You probably don't want to give them permissions to the TFS Server box either
|
|
STEP 6
|
 (Enlarge)
|
- In order to add the account you use to login to the TFS Server box, click on "New"
- From the drop-down menu select "Add Users"
|
|
STEP 7
|
 (Enlarge)
|
- Enter the name of the account that you logged into the TFS Server box with (which has the permissions to execute tfsdeleteproject.exe)
- Click on the button labeled "OK"
|
|
STEP 8
|
 (Enlarge)
|
- The account should be added to the users/groups of the team project "test4"
|
|
STEP 9
|
 (Enlarge)
|
- Run tfsdeleteproject /server:TFS test4 where "TFS" is the name of your TFS box and "test4" is the name of the team project that you want to remove
|