1

When installing a package with overwrite option, some items are being automatically deleted where the package is installed.

Will installing a package with overwrite option delete content items?

2

If you use override option while installing a package, it replaces every item and its descendants with items from the package.

So if you have item A in your application and it has 2 children A1 and A2, and your package contains item with same ID as item A, after your package is installed, you will have only what is in your package and old items A, A1 and A2 will be removed.

If you want Sitecore to leave old items, try using merge options.

You can read more e.g. here: SITECORE PACKAGE INSTALLATION OPTIONS EXPLAINED

6
  • Thanks a lot Marek. But the overwrite option surely not gonna delete the items from the tree. It will replace the old one with new one right?
    – Agent47
    Jan 3 '18 at 8:23
  • But recently I tried to replace only one item in the tree and check the overwrite option, and also clicked on the Apply to All button and it results the deletion of all the items in the tree. Do you know why? Please Suggest
    – Agent47
    Jan 3 '18 at 8:29
  • If the item from the package has no children but the original item had children, the children of the original item will be removed. Jan 3 '18 at 8:36
  • Thanks Marek. I created a package for subitem only which has no further subitems and override when installing the package, then other subitems will get deleted. why so?
    – Agent47
    Jan 3 '18 at 13:07
  • 1
    @Agent47 If you create the package with only subitems (as you mention in your earlier comment), and choose orverride when installing, it should not delete other subimtes that does not included in the package. Jan 15 '18 at 18:50

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.