Uninstalling ThingWorx Flow Automatically
With ThingWorx Flow 9.1 and later, use the automated ThingWorx Flow uninstaller from the ThingWorx Flow installation directory to uninstall ThingWorx Flow. The ThingWorx Flow performs the following tasks:
• Removes all ThingWorx Flow-related services.
• Uninstalls third-party software, such as RabbitMQ, Nginx, Node.js, PM2, Erlang, 7–Zip, and Nssm.
• Removes relevant ThingWorx Flow environment variables.
• Deletes the ThingWorx Flow installation directory.
• Deletes the \.ptc_ccif\ThingWorxFlow.xml file.
• (Windows) Deletes HKEY_LOCAL_MACHINE\SOFTWARE\Ericsson\Erlang\ErlSrv\1.1\RabbitMQ from the registry, if it exists.
Steps
1. Log in to the system where you want to uninstall ThingWorx Flow as administrator.
2. According to your operating system, from the ThingWorx Flow installation directory, run the uninstaller:
▪ Windows—Right-click the ThingWorxFlow_uninstall.exe file, and select Run as Administrator.
▪ Linux—Run the ThingWorxFlow_uninstall file with the root user.
3. To uninstall ThingWorx Flow and its modules, click Yes.
4. When uninstallation is complete, click OK.
Post-uninstallation steps
1. In ThingWorx Composer, from the Workflows Thing, remove all services, events and subscriptions, and save the Workflows Thing
2. In ThingWorx Composer, remove the Workflow service from any Thing entities, and save the Things.
3. In case SSO is configured, update sso-settings back to ThingWorx host and port on the ThingWorx Foundation machine.
In sso-settings.json file, change clientBaseURL and metadataEntityBaseURL values respectively, back to ThingWorx host and port.
4. If you had installed ThingWorx Flow on a different machine than ThingWorx Foundation, then do the following:
a. On the ThingWorx Foundation machine, remove the following section from the platform-settings.json file:
"OrchestrationSettings": {
"EnableOrchestration": true,
"QueueHost": "localhost",
"QueuePort": 5672,
"QueueName": "256mb",
"QueueUsername": "symphuser",
"QueuePassword": "symphpass",
"QueueVHost": "symphony"
},
b. Restart ThingWorx Foundation.