3 <title>npm-unpublish</title>
4 <meta http-equiv="content-type" value="text/html;utf-8">
5 <link rel="stylesheet" type="text/css" href="../../static/style.css">
9 <h1><a href="../api/npm-unpublish.html">npm-unpublish</a></h1> <p>Remove a package from the registry</p>
11 <h2 id="SYNOPSIS">SYNOPSIS</h2>
13 <pre><code>npm.commands.unpublish(package, callback)</code></pre>
15 <h2 id="DESCRIPTION">DESCRIPTION</h2>
17 <p>This removes a package version from the registry, deleting its
18 entry and removing the tarball.</p>
20 <p>The package parameter must be defined.</p>
22 <p>Only the first element in the package parameter is used. If there is no first
23 element, then npm assumes that the package at the current working directory
26 <p>If no version is specified, or if all versions are removed then
27 the root package entry is removed from the registry entirely.</p>
29 <p id="footer">npm-unpublish — npm@1.3.17</p>
32 var wrapper = document.getElementById("wrapper")
33 var els = Array.prototype.slice.call(wrapper.getElementsByTagName("*"), 0)
34 .filter(function (el) {
35 return el.parentNode === wrapper
36 && el.tagName.match(/H[1-6]/)
40 , toc = document.createElement("ul")
41 toc.innerHTML = els.map(function (el) {
42 var i = el.tagName.charAt(1)
52 out += "<li><a href='#" + el.id + "'>" +
53 ( el.innerText || el.text || el.innerHTML)
58 document.body.appendChild(toc)