deleteApp method

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

Deletes an existing Amplify app specified by an app ID.

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

Parameter appId : The unique ID for an Amplify app.

Implementation

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