Uninstalling ThingWorx Flow Manually
Complete the steps below to manually uninstall ThingWorx Flow:
Windows Server 2016/ 2019
Prerequisite
Remove all workflows.
Steps
1. Stop the following services:
a. RabbitMQ
b. thingworxflow.exe
c. ThingWorxFlowNginx
2. From Windows Apps/ Programs, uninstall the following programs in the specified order:
a. RabbitMQ
b. Erlang
3. Delete the following services, if they exist:
a. SC DELETE thingworxflow.exe
b. SC DELETE ThingWorxFlowNginx
4. Remove the following environment variables:
a. PM2_HOME
b. PM2_SERVICE_PM2_DIR
c. All RabbitMQ variables. They start with RABBITMQ_*.
d. From the PATH environment variable, remove all entries that point to the ThingWorx Flow installation directory.
e. From the PATH environment variable, remove the entry that points to the Nginx installation. The default location is C:\Program Files\nginx-xxx.
5. Remove the following folders:
a. Nginx installation folder. The default location is C:\Program Files\nginx-xxx.
b. ThingWorx Flow installation folder.
If some files are locked, you might have to end the epmd task on the Processes tab in Windows Task Manager.
6. Delete the <Path_To_Users_Folder>\Users\engtest\.ptc_ccif\ThingWorxFlow.xml file.
7. Delete HKEY_LOCAL_MACHINE\SOFTWARE\Ericsson\Erlang\ErlSrv\1.1\RabbitMQ from the registry, if it exists.
8. 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"
},
9. 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.
10. Restart ThingWorx Foundation.
11. Delete the ThingWorx Flow database. If the same database was used for both ThingWorx Foundation and ThingWorx Flow, then delete the flow schema from the ThingWorx database.
If you want to
install ThingWorx Flow again, you must create the
ThingWorx Flow database again before you begin installation, unless you want to use the same database as
ThingWorx Foundation.
Red Hat Enterprise Linux 7.5, 7.6, 8.0, or 8.1
Prerequisite
Remove all workflows.
Steps
1. Nginx
a. Stop Nginx service and remove Nginx auto-start script:
▪ sudo systemctl stop nginx.service
▪ sudo systemctl disable nginx.service
b. Delete Nginx-related installation directories:
▪ sudo rm -rf /etc/nginx
▪ sudo rm -rf /var/log/nginx
▪ sudo rm -rf /var/cache/nginx/
c. Remove the nginx.service script that is created under systemd:
▪ sudo rm -rf /usr/lib/systemd/system/nginx.service
▪ sudo rm -rf /etc/systemd/system/nginx.service.d
d. Remove Nginx-related packages:
▪ sudo yum remove nginx
▪ sudo rm /etc/yum.repos.d/nginx-repo.repo
2. RabbitMQ
a. Stop the rabbitmq-server service:
sudo systemctl stop rabbitmq-server
b. Remove rabbitmq:
▪ sudo yum remove rabbitmq-server
▪ For Red Hat Enterprise Linux 8.0 or 8.1, additionally run the sudo rm /etc/yum.repos.d/bintray-rabbitmq-server.repo command.
c. Delete RabbitMQ related directories:
▪ sudo rm -rf /etc/rabbitmq
▪ sudo rm -rf /var/log/rabbitmq
▪ sudo rm -rf /usr/lib/rabbitmq
▪ sudo rm -rf /var/lib/rabbitmq
d. Delete RabbitMQ related packages:
▪ sudo yum remove logrotate
▪ sudo yum remove erlang*
3. ThingWorx Flow
a. Stop and remove the following services:
▪ sudo systemctl stop ThingWorx-Flow
▪ sudo systemctl disable ThingWorx-Flow
▪ sudo rm /etc/systemd/system/ThingWorx-Flow.service
▪ sudo systemctl daemon-reload
b. Delete the ThingWorx Flow installation directory:
sudo rm -R <ThingWorx_Flow_Installation_Folder>
4. Node
sudo yum remove nodejs
5. Remove the following files:
▪ sudo rm /etc/profile.d/pm2.sh
▪ sudo rm /root/.ptc_ccif/ThingWorxFlow.xml
▪ sudo semanage fcontext -D
6. 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"
},
7. 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.
8. Restart ThingWorx Foundation.
9. Delete the ThingWorx Flow database. If the same database was used for both ThingWorx Foundation and ThingWorx Flow, then delete the flow schema from the ThingWorx database.
If you want to
install ThingWorx Flow again, you must create the
ThingWorx Flow database again before you begin installation, unless you want to use the same database as
ThingWorx Foundation.