Menu
AWS CodeCommit
User Guide (API Version 2015-04-13)

Delete a Tag in AWS CodeCommit

To delete a tag in an AWS CodeCommit repository, use Git from a local repo connected to the AWS CodeCommit repository. .

Use Git to Delete a Tag

To use Git from a local repo to delete a tag in an AWS CodeCommit repository, follow these steps.

These steps assume you have already connected the local repo to the AWS CodeCommit repository. For instructions, see Connect to a Repository.

  1. To delete the tag from the local repo, run the git tag -d tag-name command where tag-name is the name of the tag you want to delete.

    Tip

    To get a list of tag names, run git tag.

    For example, to delete a tag in the local repo named beta:

    Copy
    git tag -d beta
  2. To delete the tag from the AWS CodeCommit repository, run the git push remote-name --delete tag-name command where remote-name is the nickname the local repo uses for the AWS CodeCommit repository and tag-name is the name of the tag you want to delete from the AWS CodeCommit repository.

    Tip

    To get a list of AWS CodeCommit repository names along with their URLs, run the git remote -v command.

    For example, to delete a tag named beta in the AWS CodeCommit repository named origin:

    Copy
    git push origin --delete beta

On this page: