@Override
    public void importMeshNetworkJson(@NonNull String networkJson) {
        try {
            isNetworkImportInProgress = true;
            final MeshNetwork importedNetwork = mImportExportUtils.importNetwork(networkJson);
            importedNetwork.setCallbacks(callbacks);
            final MeshNetwork network = mMeshNetworkDb.getMeshNetwork(mMeshNetworkDao, importedNetwork.getMeshUUID());
            if (network != null) {
                final List<ProvisionedMeshNode> nodes = mMeshNetworkDb.getNodes(mProvisionedNodesDao, importedNetwork.getMeshUUID());
                importedNetwork.unicastAddress = network.unicastAddress;
                for (ProvisionedMeshNode meshNode : importedNetwork.getNodes()) {
                    for (ProvisionedMeshNode node : nodes) {
                        if (node.getUuid().equalsIgnoreCase(meshNode.getUuid())) {
                            meshNode.setSequenceNumber(node.getSequenceNumber());
                        }
                    }
                }
                importedNetwork.loadSequenceNumbers();
                // Load the last known ivIndex.
                // Note: The iv index will be updated based on the secure network beacon after connecting to a proxy.
                importedNetwork.ivIndex = network.ivIndex;
            }
            mMeshNetworkDb.update(mMeshNetworkDao, importedNetwork, false);
            insertNetwork(importedNetwork);
            mMeshNetwork = importedNetwork;
            mMeshManagerCallbacks.onNetworkImported(importedNetwork);
            isNetworkImportInProgress = false;
        } catch (Exception ex) {
            isNetworkImportInProgress = false;
            mMeshManagerCallbacks.onNetworkImportFailed(ex.getMessage());
        }
    }
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