How to delete release completely? #23022
-
Hello, I created a new release, publish it, then I found several bugs and fixed them. But I see they are not in the latest release. So, I deleted a release, fixed a couple more bugs then created a new release with the same version. And then I found that all these fixes are not in release again! Obviously it’s because github “remembered” my previous tag. What should I do now? I don’t want to change a tag (release name) because it’s important to me. But I don’t know how to make github “forget” this tag, or include updates in this current release. Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 1 reply
-
You can delete a release by going to the release (as if you were viewing it), then clicking the Delete Release button. |
Beta Was this translation helpful? Give feedback.
-
Hi, thanks for your response. I did exactly what you described. But when I create a new release with the same name it “catches” the commits for that deleted resource, but not current ones. This is the problem. |
Beta Was this translation helpful? Give feedback.
-
Hi @caravelkit, Thank you for being here! It is possible to delete using git from the command line. This can be done by running the following command inside the repository locally:
Running the command above should delete the tag, allowing you to create it again against the correct branch. I hope this helps! Best, Andrea |
Beta Was this translation helpful? Give feedback.
-
Thanks! I will try this approach. |
Beta Was this translation helpful? Give feedback.
-
Another way is to delete the tag locally, then
|
Beta Was this translation helpful? Give feedback.
-
You can delete a Tag after delete the Release. |
Beta Was this translation helpful? Give feedback.
Hi @caravelkit,
Thank you for being here! It is possible to delete using git from the command line. This can be done by running the following command inside the repository locally:
git push --delete origin tagname
Running the command above should delete the tag, allowing you to create it again against the correct branch.
I hope this helps!
Best,
Andrea