removeAllBackends method

Future<RemoveAllBackendsResponse> removeAllBackends({
  1. required String appId,
  2. bool? cleanAmplifyApp,
})

Removes all backend environments from your Amplify project.

May throw BadRequestException. May throw GatewayTimeoutException. May throw NotFoundException. May throw TooManyRequestsException.

Parameter appId : The app ID.

Parameter cleanAmplifyApp : Cleans up the Amplify Console app if this value is set to true.

Implementation

Future<RemoveAllBackendsResponse> removeAllBackends({
  required String appId,
  bool? cleanAmplifyApp,
}) async {
  final $payload = <String, dynamic>{
    if (cleanAmplifyApp != null) 'cleanAmplifyApp': cleanAmplifyApp,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/backend/${Uri.encodeComponent(appId)}/remove',
    exceptionFnMap: _exceptionFns,
  );
  return RemoveAllBackendsResponse.fromJson(response);
}