npm-unpublish.1 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. .TH "NPM\-UNPUBLISH" "1" "August 2021" "" ""
  2. .SH "NAME"
  3. \fBnpm-unpublish\fR \- Remove a package from the registry
  4. .SS Synopsis
  5. .SS Unpublishing a single version of a package
  6. .P
  7. .RS 2
  8. .nf
  9. npm unpublish [<@scope>/]<pkg>@<version>
  10. .fi
  11. .RE
  12. .SS Unpublishing an entire package
  13. .P
  14. .RS 2
  15. .nf
  16. npm unpublish [<@scope>/]<pkg> \-\-force
  17. .fi
  18. .RE
  19. .SS Warning
  20. .P
  21. Consider using the \fBdeprecate\fP command instead, if your intent is to encourage users to upgrade, or if you no longer want to maintain a package\.
  22. .SS Description
  23. .P
  24. This removes a package version from the registry, deleting its
  25. entry and removing the tarball\.
  26. .P
  27. If no version is specified, or if all versions are removed then
  28. the root package entry is removed from the registry entirely\.
  29. .P
  30. Even if a package version is unpublished, that specific name and
  31. version combination can never be reused\. In order to publish the
  32. package again, a new version number must be used\. If you unpublish the entire package, you may not publish any new versions of that package until 24 hours have passed\.
  33. .P
  34. To learn more about how unpublish is treated on the npm registry, see our <a href="https://www\.npmjs\.com/policies/unpublish" target="_blank" rel="noopener noreferrer"> unpublish policies</a>\|\.
  35. .SS See Also
  36. .RS 0
  37. .IP \(bu 2
  38. npm help deprecate
  39. .IP \(bu 2
  40. npm help publish
  41. .IP \(bu 2
  42. npm help registry
  43. .IP \(bu 2
  44. npm help adduser
  45. .IP \(bu 2
  46. npm help owner
  47. .RE