How do I delete exported templates from VS2019

Les Ferguson 6 Reputation points
2021-07-07T00:47:17.317+00:00

I have created a few custom templates and exported them. Now I want to remove them but they keep showing up in the Add New Item list.
I have deleted every instance of the exported template files that I can find, but the templates are still in listed. If I select on of them it throws up an error telling me it can't find it, so I assume this is just a reference held in configuration somewhere. How do I refresh or reset the config to remove the deleted templates?

Developer technologies | Visual Studio | Other
{count} votes

1 answer

Sort by: Most helpful
  1. PengGe-MSFT 3,381 Reputation points
    2021-07-07T02:28:50.933+00:00

    Hi, @Les Ferguson

    Welcome to Microsoft Q&A!

    Please delete the template files you created in these two folders:

    %USERPROFILE%\Documents\Visual Studio 2019\My Exported Templates  
    %USERPROFILE%\Documents\Visual Studio 2019\Templates(ItemTemplates or ProjectTemplates)  
    

    After deletion, these template files will no longer appear in the list of Create a new project.

    For template files, you can refer to this document

    Sincerely,
    Peng
    *
    If the answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.