deleteConnection method

Future<void> deleteConnection({
  1. required String connectionId,
})

Delete the connection with the provided id.

May throw GoneException. May throw LimitExceededException. May throw ForbiddenException.

Implementation

Future<void> deleteConnection({
  required String connectionId,
}) async {
  ArgumentError.checkNotNull(connectionId, 'connectionId');
  await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri: '/%40connections/${Uri.encodeComponent(connectionId)}',
    exceptionFnMap: _exceptionFns,
  );
}