Remove Custom Project Template that was Automatically Imported

Viewed 18552

I deleted the exported zip file that was placed in my exported templates folder and of course it still shows in Visual Studio's "Add New Project" dialog. I expected that but I'm having a difficult time finding where else the template files are stored. How do I remove a custom template?

Edit

I've searched the following folders (and numerous others, but these are the most obvious): %ProgramFiles%\Microsoft Visual Studio 10.0\Common7\IDE\ProjectTemplates %ProgramFiles%\Microsoft Visual Studio 10.0\Common7\IDE\ProjectTemplatesCache %userprofile%\Documents\Visual Studio 2010\My Exported Templates %userprofile%\Documents\Visual Studio 2010\Templates\ProjectTemplates

Not sure if it matters, but I'm also using Windows 7 for my OS.

10 Answers

For the sake of completeness here are all the paths you have to visit to clear template leftovers in VS 2019:

First close down VS...

  1. C:\Users\USER\Documents\Visual Studio 2019\My Exported Templates
  2. C:\Users\USER\Documents\Visual Studio 2019\Templates\ProjectTemplates
  3. C:\Users\USER\AppData\Roaming\Microsoft\VisualStudio\16.0_xxxxxxxx
  4. C:\Users\USER\Application Data\Microsoft\VisualStudio\16.0_xxxxxxxx
  5. C:\Users\USER\AppData\Local\Microsoft\VisualStudio\16.0_xxxxxxxx\ProjectTemplatesCache_{GUID}

Repeat step 5 for Item templates if any.

NOTE: Clear zipped templates, *.bin files and subfolders containing template items.

I was able to solve this problem for my Visual Studio Community 2017 by first deleting the template zip files in the following folders:

%UserProfile%\Documents\Visual Studio 2017\Templates\ProjectTemplates
%UserProfile%\Documents\Visual Studio 2017\My Exported Templates

Then deleting the following folder:

%UserProfile%\AppData\Roaming\Microsoft\VisualStudio\15.0_aed38a72\ProjectTemplatesCache

(The identifier after "15.0_" might vary)

In my case with Visual Studio 19 on Windows 10 it was this folder:

%userprofile%\AppData\Roaming\Microsoft\VisualStudio[VS_VERSION]\ProjectTemplatesCache

I deleted the template folder and voila!

Related