Introduction
It is not possible to uninstall XTM Connect – Sitecore automatically. It must be done manually, both on the Sitecore Content Management website (marked below with green) and directly on the server that hosts this website (marked with blue).
IMPORTANT!
Make sure to always create a backup before removing items and files.
Since every Sitecore instance is different, there is no way of predicting all the possible issues that can arise from executing this process. This article should give you a solid understanding of what is the best order in which items and files related to the XTM connector are to be deleted.
Uninstalling instructions
While removing items from Sitecore always use the Remove links option (but sometimes it is necessary to use Scan for broken Links between the steps anyway). All the items paths are preceded by a database name (master
or core
). File paths are relative to the main Sitecore installation path on the server.
Verify that none of your items inherits from XtmConnectorBaseTemplate.
In the Content Editor, select XtmConnectorBaseTemplate (under sitecore → Templates → XTM), and, in the upper menu, choose the Navigate tab and expand the Links dropdown.
Click every Items that refer to the selected item, change tab to Content, and remove XtmConnectorBaseTemplate from base templates that were selected, and save the item:
Verify that none of your items is in XTMWorkflowState.
Open the Content Editor, choose Workbox (from the “lower tabs” menu), select the XTM Translation workflow and verify that there are no items using any of its workflow steps.
If there are any items with the XTM Translation workflow steps, you can use Open link to edit the workflow and clear it or change to another workflow.
This will open a popup with Content Editor; you need to Edit fields under the Workflow section:
IMPORTANT!
The Workflow section is only visible when the Standard fields option is selected under View tab.
Delete XtmUser, XtmAdmin, XtmProjectViewRestriction roles (using the Role Manager).
Delete item: master/sitecore/content/XTM Translation, and all of its sub-items.
Delete item: /master/sitecore/templates/XTM/XtmSettings.
Delete item: /master/sitecore/templates/XTM, and all of its sub-items.
Delete item: /master/sitecore/System/Workflows/XTM Translation.
Delete item: /master/sitecore/system/Dictionary/XtmAddToQueueSimpleFilter, and all of its sub-items (only applicable to the connector version between 2.5 and 3.2).
Delete item: /master/sitecore/system/Dictionary/ImportTypeOptions, and all of its sub-items (only applicable to the connector version between 2.5 and 3.2).
Delete all ribbon chunks (switch to the core DB is needed – more details below):
/core/sitecore/content/Applications/Content Editor/Ribbons/Chunks/XTM Translation/TranslationReport,
/core/sitecore/content/Applications/Content Editor/Ribbons/Chunks/XTM Translation,
/core/sitecore/content/Applications/Content Editor/Ribbons/Ribbons/Default/XTM,
/core/sitecore/content/Applications/Content Editor/Ribbons/Strips/XTM/XTM Translation,
/core/sitecore/content/Applications/Content Editor/Ribbons/Strips/XTM,
Empty Recycle Bin for master DB and core DB (switch between the master and core DB is required).
Delete files: /sitecore/shell/Themes/Standard/Xtm.zip and /sitecore/shell/Themes/Standard/XtmNewIcons.zip (if the connector version is 2.7 or higher).
Delete folder: /XtmFiles/.
Delete folder: /XtmData/.
Delete folder: /App_Config/Include/Xtm/ (or /App_Config/Include/LjungbergIt/ – for the connector version below 2.0).
Delete file: /App_Data/packages/<XTM connector installation package>.zip – this is optional since those are the packages uploaded to the server while installing/upgrading the connector.
Delete files with names starting with XTM (dll's, configs, pdbs, etc.) from the /bin/ folder.
FOLDER XtmAssemblies which contains all dlls used by the connector: HtmlAgilityPack.dll, RestSharp.dll, DotNetZip.dll, RestSharp.dll, FluentValidation.dll, Sentry.dll, Sentry.Platform.Abstraction.dll, Sentry.Protocol.dll, Swashbuckle.Core.dll, AutoMapper.dll. The folder was added in v.3.1 before it was named HtmlAgilityPack. Do not delete those dlls from the bin folder itself. Depending on the version of the connector, not all dlls can be present in your case (make sure that you do not use dlls below in other plugins).
In the Breaking Links window, choose Remove Links.
Other actions
How to switch to the CORE database
While logged in to Sitecore, go to Sitecore Experience Manager → Desktop, click on master from the bottom-right list, and select core.
How to rebuild Links
While logged in to Sitecore, go to Sitecore Experience Manager → Desktop → Reporting tools → Scan for broken Links.
Select the master checkbox and click Rebuild link database.