deleteDevice method

Future<DeleteDeviceResponse> deleteDevice({
  1. required String deviceId,
})

Deletes a device.

May throw AccessDeniedException. May throw ConflictException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ValidationException.

Parameter deviceId : The device's ID.

Implementation

Future<DeleteDeviceResponse> deleteDevice({
  required String deviceId,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri: '/devices/${Uri.encodeComponent(deviceId)}',
    exceptionFnMap: _exceptionFns,
  );
  return DeleteDeviceResponse.fromJson(response);
}