Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

Delete a Git tag in AWS CodeCommit - AWS CodeCommit

AWS CodeCommit is no longer available to new customers. Existing customers of AWS CodeCommit can continue to use the service as normal. Learn more"

AWS CodeCommit is no longer available to new customers. Existing customers of AWS CodeCommit can continue to use the service as normal. Learn more"

Delete a Git tag in AWS CodeCommit

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

Use Git to delete a Git tag

Follow these steps to use Git from a local repo to delete a Git tag in a CodeCommit repository.

These steps are written with the assumption that you have already connected the local repo to the CodeCommit repository. For instructions, see Connect to a repository.

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

    Tip

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

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

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

    Tip

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

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

    git push origin --delete beta
PrivacySite termsCookie preferences
© 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.