Hi@akhtar,
You can delete a branch from a repository unless that branch is the default branch for the repository. The below example shows how to delete a branch in an AWS CodeCommit repository.
$ aws codecommit delete-branch --repository-name MyDemoRepo --branch-name MyNewBranch