private void updateNetwork(final ProvisionedMeshNode meshNode) {
            if (meshNode != null) {
                for (int i = 0; i < mMeshNetwork.nodes.size(); i++) {
                    if (meshNode.getUnicastAddress() == mMeshNetwork.nodes.get(i).getUnicastAddress()) {
                        mMeshNetwork.nodes.set(i, meshNode);
                        break;
                    }
                }
            }
            mMeshNetworkDb.update(mMeshNetwork, mMeshNetworkDao, mNetworkKeysDao, mApplicationKeysDao, mProvisionersDao, mProvisionedNodesDao,
                    mGroupsDao, mScenesDao);
            mMeshManagerCallbacks.onNetworkUpdated(mMeshNetwork);
        }
Deletes an existing mesh network from the local database

@param meshNetwork mesh network to be deleted
mesh/src/main/java/no/nordicsemi/android/mesh/MeshManagerApi.java