How to remove node from node group in Erlang?

I am new in Erlang programming. My problem is how can I remove a particular node from the nodes group. The node I want to remove is replicating their data through Mnesia.
So please tell me how can I remove a node that still preserve the inserted data.
Thanks in advance.

Last updated:3/22/2016 1:21:44 AM

1 Answers

Tarun Kumar
Tarun Kumar

To remove paricular node from the node list. Follow the steps:
* First of all, login to the cluster that you want to remove.
* after that stop mnesia database:
  > mnesia: stop().
* after that login from another node on the cluster.
* now, you can delete the schema:
  > mnesia:del_table_copy(schema, nameOfNode@hostName.domainName).
That's it.
I hope above steps will be helpful for you.