Override or remove my published go module

Hi all:
I was published a go module with my GitHub release, which I just want to practice how to publish a module with GitHub.

But I was not a mature program, so I want to remove it thoroughly or override it with the same tag.

I am fresh to Golang, hope someone can help me, please :frowning:

Once published, a module effectively cannot be removed as it remains cached on the go mod proxy server. This serves to prevent people from breaking other people’s code by making a public module unavailable.

What you can do is to use the retract command to mark the published version as retracted. Developers would then know to not use that module version in their code.

Read more at https://golang.org/ref/mod#go-mod-file-retract

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.