deregisterService method

Future<void> deregisterService({
  1. required String serviceId,
})

Deregister a service

May throw ConflictException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw ValidationException.

Parameter serviceId : The service id to deregister. A service can only be deregistered if it is not associated with any AgentSpace.

Implementation

Future<void> deregisterService({
  required String serviceId,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri: '/v1/services/${Uri.encodeComponent(serviceId)}',
    hostPrefix: 'cp.',
    exceptionFnMap: _exceptionFns,
  );
}