2

We are using Microsoft Test Manager 2015 Update 1. I created a couple of shared parameters to see how they work.

How do you delete them? I can make them inactive, but they still display in the list of available shared parameters. I don't see a delete button and when I searched online I found nothing about it.

Jonathan Nixon
  • 4,940
  • 5
  • 39
  • 53
  • There is a delete button in VSTS, but it errors saying Shared Parameters cannot be deleted. Guess you use the answer below, or get onto MS about it :) – DaveShaw Feb 04 '16 at 21:55
  • If they are still in use, I can see why you could not delete them. But the ones I'm talking about have never been used. – Jonathan Nixon Feb 04 '16 at 22:50
  • Which version of TFS do you have that you see the delete button? – Jonathan Nixon Feb 04 '16 at 22:51
  • 1
    I think it will be in Update 2... Delete buttons have only just appeared in the last few sprints on VSTS. The one I tried to delete was unused. I think this is just a feature that isn't finished yet, sadly. – DaveShaw Feb 04 '16 at 23:00

1 Answers1

2

Shared Parameters are stored in TFS as Work Items so you could destroy it (there may be a better way but I don't know of one)

Remove or delete work items

On-premise you'll have to use the witadmin.exe command line tool (%programfiles(x86)%\Microsoft Visual Studio 14.0\Common7\IDE) with the destroywi option. You'll need to know the ID of the Shared Parameter Work Item you want to get rid of.

witadmin destroywi /collection:http://TFSServerName:8080/tfs/DefaultCollection /id:123
rerwinX
  • 2,025
  • 8
  • 9