Last active
April 27, 2025 14:50
-
-
Save joejordanbrown/6f25e3ff5f206b5a99d4f511bcd5b8f9 to your computer and use it in GitHub Desktop.
Revisions
-
joejordanbrown created this gist
Dec 20, 2020 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,10 @@ #! /bin/sh for num in `gh release list 2>/dev/null | awk '{print $1}'`; do gh release delete $num -y done for num in `gh api repos/:owner/:repo/tags | jq -r '.[].name'`; do gh api repos/:owner/:repo/git/refs/tags/${num} -X DELETE echo '✓ Deleted tag' $num done