git delete all tags local and remote

C++
git tag -d $(git tag -l)

Source

Also in C++: