DeleteBranch
Deletes a branch. Amazon RDS sets the status of the branch to deleting and deletes it
asynchronously.
You can't delete a branch that other branches were created from. Delete those branches first.
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
- BranchName
-
The name or Amazon Resource Name (ARN) of the branch to delete. The branch must belong to the DB cluster that you specify in
DBClusterIdentifier.The following constraints apply to this parameter:
-
A branch name must contain from 1 to 63 alphanumeric characters or hyphens, and start with a letter.
-
A branch ARN must be the ARN of a branch in your AWS account and AWS Region.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 255.
Required: Yes
-
- DBClusterIdentifier
-
The name of the root DB cluster of the branch.
Constraints: Must match the name of an existing DB cluster.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 255.
Required: Yes
Response Elements
The following element is returned by the service.
- Branch
-
Contains the details of a branch of an Aurora PostgreSQL DB cluster.
This data type is used as a response element in the
CreateBranch,DeleteBranch, andDescribeBranchesactions.Type: Branch object
Errors
For information about the errors that are common to all actions, see Common Error Types.
- BranchNotFound
-
The specified branch doesn't exist.
HTTP Status Code: 404
- DBClusterNotFoundFault
-
DBClusterIdentifierdoesn't refer to an existing DB cluster.HTTP Status Code: 404
- InvalidBranchState
-
The branch isn't in a valid state for the operation.
HTTP Status Code: 400
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: