{"id":4213,"date":"2006-02-24T08:53:00","date_gmt":"2006-02-24T08:53:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/buckh\/2006\/02\/24\/working-around-not-being-able-to-delete-a-work-item-type\/"},"modified":"2006-02-24T08:53:00","modified_gmt":"2006-02-24T08:53:00","slug":"working-around-not-being-able-to-delete-a-work-item-type","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/buckh\/working-around-not-being-able-to-delete-a-work-item-type\/","title":{"rendered":"Working around not being able to delete a work item type"},"content":{"rendered":"<p>The following <a href=\"http:\/\/forums.microsoft.com\/MSDN\/ShowPost.aspx?PostID=253335&amp;SiteID=1\">question<\/a> came up in the forum:&nbsp; &#8220;How do I delete the custom work item type that I created?&#8221;&nbsp; Tony Edwards posted the following.&nbsp; One other thing that comes to my mind is to have a second server to use for experimentation before applying changes to the production server.<\/p>\n<blockquote>\n<p>It is not possible in v1 [to delete work item types].&nbsp; This question came up recently and Bill Essary gave the following guidance for mitigating the problem:<\/p>\n<p>&nbsp;Here are a few things that you can do:<\/p>\n<p>&nbsp;1)&nbsp;&nbsp; <strike>Change the name of the type to something like &ldquo;(Deprecated) Bug&rdquo; so that users know not to use it<\/strike><\/p>\n<p>&nbsp;2)&nbsp;&nbsp;&nbsp; Add an attribute to the WIT that stops users from creating a new Work Item of that type.&nbsp; If your initial workflow state is &ldquo;active,&rdquo; the attribute would be added to this transition<\/p>\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;TRANSITION from=&#8221;&#8221; to=&#8221;Active&#8221; not=&#8221; &#8220;[global]Team Foundation Valid Users&#8221;&gt; <\/p>\n<\/blockquote>\n<p dir=\"ltr\"><strong>[Update 8\/21\/06]<\/strong>&nbsp; Unfortunately, work item types&nbsp;cannot be renamed in v1, so #1 above is incorrect.<\/p>\n<p dir=\"ltr\"><strong>[Update 4\/17\/09]<\/strong>&nbsp; In TFS 2008, you can delete work items and work item types using the destroyWI and destroyWITD commands in tfpt.exe in <a href=\"http:\/\/msdn.microsoft.com\/en-us\/teamsystem\/bb980963.aspx\">Team Foundation Server Power Tools for 2008<\/a>.<\/p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The following question came up in the forum:&nbsp; &#8220;How do I delete the custom work item type that I created?&#8221;&nbsp; Tony Edwards posted the following.&nbsp; One other thing that comes to my mind is to have a second server to use for experimentation before applying changes to the production server. It is not possible in [&hellip;]<\/p>\n","protected":false},"author":94,"featured_media":10268,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[8,30],"class_list":["post-4213","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","tag-team-foundation","tag-work-item-tracking"],"acf":[],"blog_post_summary":"<p>The following question came up in the forum:&nbsp; &#8220;How do I delete the custom work item type that I created?&#8221;&nbsp; Tony Edwards posted the following.&nbsp; One other thing that comes to my mind is to have a second server to use for experimentation before applying changes to the production server. It is not possible in [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/posts\/4213","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/users\/94"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/comments?post=4213"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/posts\/4213\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/media\/10268"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/media?parent=4213"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/categories?post=4213"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/tags?post=4213"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}