cargo purge package on crates.io

Hello,

I'm looking for how to permanently purge a package on the crates.io site for one version or for all versions.

Thank you for your help.

You can use the cargo yank command to mark a version as unavailable. If you yank all of the published versions, the crate's information will no longer be viewable on crates.io and Cargo will refuse to add it to new projects.

However, yanking does not completely delete a crate. An existing project with a Cargo.lock file created before the crate was yanked will still be allowed to use the yanked version. In special circumstances where yanking is insufficient (for example, if a crate accidentally contains personally identifying information, or violates someone else's copyright), you can contact the crates.io team to request a complete removal.

4 Likes

If it has a security vulnerability or was an accident you can yank it (which prevents it from being listed but still allows downloads of it), but crates.io will only outright remove packages if they break the Rust Code of Conduct or the law.

2 Likes