instead of deleting, shouldn't we actually adapt this block into something like (pseudo-code)

if (getNetworkName() == null) { return 400 //bad request }
if (dataClient.hasNetwork(getNetworkName()) { return 403; // Forbidden }