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

Published at Apr 10, 2021

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