deleteOutpost method

Future<void> deleteOutpost({
  1. required String outpostId,
})

Deletes the Outpost.

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

Implementation

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