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