deleteDashboard method

Future<void> deleteDashboard({
  1. required String dashboardId,
  2. String? clientToken,
})

Deletes a dashboard from IoT SiteWise Monitor.

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

Parameter dashboardId : The ID of the dashboard to delete.

Parameter clientToken : A unique case-sensitive identifier that you can provide to ensure the idempotency of the request. Don't reuse this client token if a new idempotent request is required.

Implementation

Future<void> deleteDashboard({
  required String dashboardId,
  String? clientToken,
}) async {
  final $query = <String, List<String>>{
    if (clientToken != null) 'clientToken': [clientToken],
  };
  final response = await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri: '/dashboards/${Uri.encodeComponent(dashboardId)}',
    queryParams: $query,
    hostPrefix: 'monitor.',
    exceptionFnMap: _exceptionFns,
  );
}