13

I created German versions of several data templates by accident.

For regular items, there's an option to remove a version at tab "Versions" –> section "Versions":

enter image description here

For templates, though, the whole "Versions" section is missing.

I'd like to remove all template versions that are not English. How do I do that?

17

Sitecore doesn't expose the version manager [you've shown] on templates. However, you can use the DB Browser (~/sitecore/admin/dbbrowser.aspx) and manage items, templates, etc. that way. Simply point your browser to http://instance/sitecore/admin/dbbrowser.aspx:

dbbrowser overview

Then navigate to the template you're looking to modify and select the version you're after and select Delete Version:

dbbrowser delete version

  • Thank you, that works! Is there any possibility that the items of this template will get changed when I delete a template version? Also, should I copy standard values fields from the German version to the English version before I delete them? – Dmytro Shevchenko Oct 5 '16 at 12:59
  • For the former, like any standard values, you have the potential of changing an item that doesn't have its own data. As far as migrating data, that's up to your use case. – Brad Christie Oct 5 '16 at 14:22
6

Another way to do this is using Sitecore Powershell Extenstions. There is a cmdlet called Remove-ItemLanguage, this removes the specified language version from the item.

Example that removes the German version of a template:

Get-Item master:\templates\User Defined\MyTemplate | Remove-ItemLanguage -Language de-de

You could create a script that would load all the items you created the language for and loop through them removing the German language pretty easily.

  • It doesn't remove or affect related items, right? :) – Dmytro Shevchenko Oct 5 '16 at 13:03
  • 1
    According to the docs, it just removes the language version for the specified item, will not affect anything that references that item. – Richard Seal Oct 5 '16 at 13:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.