Skip to main content

I want to remove helpdesk data from a node

in Node Management
Authors list
Published: Jan 6, 2023|Last updated: Aug 8, 2023
Question

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'):

image.png

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:

image.png

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.

image.png

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

opc list-instances
copy

image.png
HelpfulUnhelpful
next pageI want to re-initialize my cluster
previous pageI want to remove a node from my exsiting cluster

Please log in or register to submit a comment.