cargo yank

Remove a pushed crate from the index. This should only be used when you accidentally release a significantly broken crate. Note: this does not remove any data. The crate is still present after a yank - this just prevents new projects from using it. More information: https://doc.rust-lang.org/cargo/commands/cargo-yank.html.

cargo yank crate@version

cargo yank --undo crate@version

cargo yank --registry name crate@version