deleteConnectionGroup method

Future<void> deleteConnectionGroup({
  1. required String id,
  2. required String ifMatch,
})

Deletes a connection group.

May throw AccessDenied. May throw CannotDeleteEntityWhileInUse. May throw EntityNotFound. May throw InvalidIfMatchVersion. May throw PreconditionFailed. May throw ResourceNotDisabled.

Parameter id : The ID of the connection group to delete.

Parameter ifMatch : The value of the ETag header that you received when retrieving the connection group to delete.

Implementation

Future<void> deleteConnectionGroup({
  required String id,
  required String ifMatch,
}) async {
  final headers = <String, String>{
    'If-Match': ifMatch.toString(),
  };
  await _protocol.send(
    method: 'DELETE',
    requestUri: '/2020-05-31/connection-group/${Uri.encodeComponent(id)}',
    headers: headers,
    exceptionFnMap: _exceptionFns,
  );
}