deleteView method

Future<void> deleteView({
  1. required String instanceId,
  2. required String viewId,
})

Deletes the view entirely. It deletes the view and all associated qualifiers (versions and aliases).

May throw AccessDeniedException. May throw InternalServiceException. May throw InvalidParameterException. May throw InvalidRequestException. May throw ResourceInUseException. May throw ResourceNotFoundException. May throw TooManyRequestsException.

Parameter instanceId : The identifier of the Connect Customer instance. You can find the instanceId in the ARN of the instance.

Parameter viewId : The identifier of the view. Both ViewArn and ViewId can be used.

Implementation

Future<void> deleteView({
  required String instanceId,
  required String viewId,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri:
        '/views/${Uri.encodeComponent(instanceId)}/${Uri.encodeComponent(viewId)}',
    exceptionFnMap: _exceptionFns,
  );
}