Deleting mnesia tables

Hakan Mattsson <>
Fri Sep 6 14:48:43 CEST 2002

On Fri, 6 Sep 2002, Sean Hinde wrote:

Sean> Anyone know an easy way to delete a table which one node thinks exists both
Sean> on itself and on another node, while the other node is down (please don't
Sean> ask!)?

You need to remove the other node from the schema before you can delete the table:

   ()8> mnesia:create_table(t, [{disc_copies, [, ]}]).
   ()9> rpc:call(, mnesia, stop, []). 
   ()10> mnesia:delete_table(t).
   {aborted,{not_active,"All replicas on diskfull nodes are not active yet",
   ()11> mnesia:del_table_copy(schema, ).
   ()12> mnesia:delete_table(t).                         


More information about the erlang-questions mailing list