before remove the node, flush the remove command to the node first