ot::NetworkData::Local::RemoveService() method
Removes a Service entry from the Thread Network local data.
Arguments
aEnterpriseNumber
Enterprise Number of the service to be deleted.
aServiceData
The service data.
Return value
kErrorNone Successfully removed the Service entry. kErrorNotFound Could not find the Service entry.