Featured image of post How to Delete Local and Remote Tags in Git

How to Delete Local and Remote Tags in Git

A simple explanation of how to delete tags that are no longer needed in Git. Covers everything from local tag deletion using 'git tag -d' to deleting tags on the remote repository using 'git push origin --delete'.

Delete a local tag

  1. Check existing local tags with git tag.
  2. Delete the tag with git tag -d v0.1.0. (Replace v0.1.0 with the tag you want to delete)

Delete a remote tag

  1. Check existing remote tags with git ls-remote --tags --refs origin.
  2. Delete the remote tag with git push origin --delete v0.1.0. (Replace v0.1.0 with the tag you want to delete)

Deleting the remote tag does not automatically remove local copies held by collaborators. Verify the target first because this affects everyone using the remote.

Deleting a tag removes that reference; it does not directly delete the commit it pointed to or rewrite other branch history. The commit will no longer be reachable by that tag name. origin is an example remote name, so replace it if your remote uses another name.

References

git-tag, git-ls-remote, git-push

Licensed under CC BY-NC-SA 4.0
Last updated on 2026/11/25 00:00 +0900
comments powered by Disqus