I have removed a node from my cluster, how do I remove the helpdesk data from it?
Once you have removed a standby node from a cluster the helpdesk data remains in place. This is so the node can be re-added if needed without a lengthy intial sync.
If you want to remove the helpdesk data, first get a full list of all helpdesks on the node:
opc list-instances copy
This will list out all the instances, make a note of any instance names that you want to remove (in the below example the name is 'helpdesk'):

Then to remove the helpdesk you run the following command. Due to the fact the database and elasticsearch index are stored on another server we need to use the --ignore-errors flag otherwise the OPC will report that it cannot find the database or search index locally.
opc inst delete -i <instance name> --ignore-errors copy
So for our above example the command would be:
opc inst delete -i helpdesk --ignore-errors copy
This will generate a prompt to confirm the removal of the instance:

You will then see the OPC remove the instance data, as the instance is using a remote MySQL server the 'failed to remove' message is expected as the database is not being hosted locally.

Running the list instances command again will show that the instance and it's data have been removed:
opc list-instances copy

Please log in or register to submit a comment.