deleteBranch method

Future<DeleteBranchResult> deleteBranch({
  1. required String appId,
  2. required String branchName,
})

Deletes a branch for an Amplify app.

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

Parameter appId : The unique ID for an Amplify app.

Parameter branchName : The name of the branch.

Implementation

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