How to delete all local and remote tags from a Github Repo

This article was published on Apr 10, 2021, and takes less than a minute to read.

BE CAREFUL : by doing this you'll completely erase ALL existing tags.

We can simply run the following commands:

#Delete local tags.
git tag -l | xargs git tag -d
#Fetch remote tags.
git fetch
#Delete remote tags.
git tag -l | xargs git push --delete origin
#Delete local tasg.
git tag -l | xargs git tag -d