AmplifyGen3 / Client / delete_branch

delete_branch

AmplifyGen3.Client.delete_branch(**kwargs)

Deletes a branch of an environment and its data. The deletion happens asynchronously. You can’t delete the production branch. You can delete other branches even while deployments use them.

See also: AWS API Documentation

Request Syntax

response = client.delete_branch(
    AppName='string',
    EnvironmentName='string',
    BranchName='string'
)
Parameters:
  • AppName (string) –

    [REQUIRED]

    The name of the app.

  • EnvironmentName (string) –

    [REQUIRED]

    The name of the environment.

  • BranchName (string) –

    [REQUIRED]

    The name of the branch to delete.

Return type:

dict

Returns:

Response Syntax

{}

Response Structure

  • (dict) –

Exceptions