deleteSite method

Future<void> deleteSite({
  1. required String siteId,
})

Deletes the site.

May throw ValidationException. May throw NotFoundException. May throw AccessDeniedException. May throw InternalServerException.

Implementation

Future<void> deleteSite({
  required String siteId,
}) async {
  ArgumentError.checkNotNull(siteId, 'siteId');
  _s.validateStringLength(
    'siteId',
    siteId,
    1,
    255,
    isRequired: true,
  );
  final response = await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri: '/sites/${Uri.encodeComponent(siteId)}',
    exceptionFnMap: _exceptionFns,
  );
}