deleteBackend method
Removes an existing environment from your Amplify project.
May throw BadRequestException.
May throw GatewayTimeoutException.
May throw NotFoundException.
May throw TooManyRequestsException.
Parameter appId :
The app ID.
Parameter backendEnvironmentName :
The name of the backend environment.
Implementation
Future<DeleteBackendResponse> deleteBackend({
required String appId,
required String backendEnvironmentName,
}) async {
final response = await _protocol.send(
payload: null,
method: 'POST',
requestUri:
'/backend/${Uri.encodeComponent(appId)}/environments/${Uri.encodeComponent(backendEnvironmentName)}/remove',
exceptionFnMap: _exceptionFns,
);
return DeleteBackendResponse.fromJson(response);
}