Ad space (banner)
🌿Git Lessons
Lesson 33 / 59

Deleting a Tag with git tag -d

This lesson covers deleting a tag with git tag -d. It's for anyone searching "git tag -d usage."

git tag -d deletes a mistakenly-created or no-longer-needed tag. It only deletes the local tag — it has no effect on a remote tag.

In Try It, run git tag -d v1.0. The tag named v1.0 is deleted from your local repository.

A common early mistake is expecting this to also delete a tag that's already been pushed to the remote — it doesn't; deleting the remote-side tag as well requires a separate operation like git push --delete. In real teams, this command is used for tag housekeeping, such as cleaning up a temporary tag that was created for pre-release testing.

Git
Try it (type this into the pseudo terminal)
git tag -d v1.0

🧑‍💻 You can type this command into the Git pseudo terminal to try it yourself (this page itself has no interactive terminal).

Ad space (banner)
Ad space (in-article)