npm Publish & Registry/Unpublish a package version

Remove a published version, subject to registry rules.

Section: Registry discovery and metadata

Unpublish a package version

bash
bash
npm unpublish <package>@<version>
Explanation

Remove a published version, subject to registry rules.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Registry discovery and metadata
Search the registry
Search for packages from the CLI.
OpenIn sheetbashsame section
Open package repository
Open the package repository URL.
OpenIn sheetbashsame section
Open package homepage
Open a package homepage.
OpenIn sheetbashsame section
Deprecate a version range
Mark versions as deprecated in the registry.
OpenIn sheetbashsame section
Bump patch version
Increment patch version and create a git tag by default.
OpenIn sheetbash1 tag match
List dist-tags
Show all dist-tags for a package.
OpenIn sheetbash1 tag match