deleteApp method

Future<DeleteAppResult> deleteApp({
  1. required String appId,
})

Deletes an existing Amplify app specified by an app ID.

May throw BadRequestException. May throw DependentServiceFailureException. May throw InternalFailureException. May throw NotFoundException. May throw UnauthorizedException.

Parameter appId : The unique ID for an Amplify app.

Implementation

Future<DeleteAppResult> deleteApp({
  required String appId,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri: '/apps/${Uri.encodeComponent(appId)}',
    exceptionFnMap: _exceptionFns,
  );
  return DeleteAppResult.fromJson(response);
}