deleteGateway method

Future<void> deleteGateway({
  1. required String gatewayId,
})

Deletes a gateway from IoT SiteWise. When you delete a gateway, some of the gateway's files remain in your gateway's file system.

May throw ConflictingOperationException. May throw InternalFailureException. May throw InvalidRequestException. May throw ResourceNotFoundException. May throw ThrottlingException.

Parameter gatewayId : The ID of the gateway to delete.

Implementation

Future<void> deleteGateway({
  required String gatewayId,
}) async {
  await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri: '/20200301/gateways/${Uri.encodeComponent(gatewayId)}',
    hostPrefix: 'api.',
    exceptionFnMap: _exceptionFns,
  );
}