SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

If you have a doc library template, and you've created some doc library instances based off this template, is it safe to remove this template once you're done with it?

share|improve this question

migrated from Oct 27 '11 at 2:06

This question came from our site for professional and enthusiast programmers.

Could you please clarify, do you mean document library template or document library definition? – Andrey Markeev Oct 27 '11 at 13:01

Libraries created from a template are not tied to the template, so the template can be removed if it is no longer required. The same holds true for Site Templates.

Yes, the template can be removed.

share|improve this answer

I don't think it's a good practice to remove any components from SharePoint, unless you've removed all provisioned instanced of this component in your case list instances. You can always change your List template and set Hidden attribute to TRUE so it won't appear in the UI.

<ListTemplate  Hidden="TRUE" />
share|improve this answer

If you meant list definition, the answer is NO.

We had a real situation at work, when deletion of a list definition which was previously deployed through a feature, broke the list instances which were created based on the definition.

In our particular situation, deletion of list definition produced exception 'Invalid file name' (0x81020030) on page load, when it was trying to access the collection of list views (in SPRequestInternalClass.GetViewsSchemaXml method).

The list definition was created as a List Definition project item in Visual Studio (with Schema.xml).

The screenshot of the error from the corresponding bug report:

enter image description here

You can check out the full-sized screenshot.

Eventually, I haven't found any resolution or workaround on this issue, and we had to restore the removed definitions.

So, even if it is not always true, you'd better check somewhere on staging environment :)

share|improve this answer
There is a difference between a list definition and a list template though. same with sites. – Mike Oryszak Oct 27 '11 at 12:39
@MikeOryszak, ahh yes, got it now, my post concerns list definition, of course :) – Andrey Markeev Oct 27 '11 at 12:59

If it's your own template. I would not delete OOTB template.

share|improve this answer
Yes it's a template I defined myself, so this won't have any effects on libraries/sites already created from this template? – user5418 Oct 27 '11 at 3:08

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.