Change variable in DELETE Single Network Service Descriptor
Line 137 should be:
DELETE ${apiRoot}/${apiName}/${apiVersion}/ns_descriptors/${disabledNsdInfoId}
And the variable ${disabledNsdInfoId} should be added to variables list in nsDescriptors.txt