v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1477523442.5 KB

Deletes a branch from a repository, unless that branch is the default branch for the repository.

post/#X-Amz-Target=CodeCommit_20150413.DeleteBranch

Headers

X-Amz-Target'CodeCommit_20150413.DeleteBranch' required

Request body

repositoryNamestring required

The name of the repository that contains the branch to be deleted.

branchNamestring required

The name of the branch to delete.

Response

Success