title: How to delete a
body: <p>I created an <code>npm link</code> inside a local dependency. I've since deleted that local dependency off my HDD.</p>
  <p>Now I'm trying to delete this <code>npm link</code>.</p>
  <p>I've tried:</p>
  <ul>
  <li><code>npm rm --global dependency</code></li>
  <li><code>npm uninstall dependency</code></li>
  <li><code>npm unlink --no-save dependency</code></li>
  </ul>
  <p>However, after doing all that, and after the code has been deleted from my HDD, <code>npm link dependency</code> <em>still</em> works when called from my main project. How to delete it properly? Here's my <code>package.json</code>:</p>
  <pre><code>{
    &quot;name&quot;: &quot;myproject&quot;,
    &quot;version&quot;: &quot;1.0.0&quot;,
    &quot;description&quot;: &quot;&quot;,
    &quot;main&quot;: &quot;index.js&quot;,
    &quot;scripts&quot;: {
      &quot;test&quot;: &quot;echo \&quot;Error: no test specified\&quot; &amp;&amp; exit 1&quot;,
      &quot;dev&quot;: &quot;webpack serve&quot;,
      &quot;build&quot;: &quot;webpack --mode production&quot;
    },
    &quot;keywords&quot;: [],
    &quot;author&quot;: &quot;&quot;,
    &quot;license&quot;: &quot;ISC&quot;,
    &quot;dependencies&quot;: {
      &quot;copy-webpack-plugin&quot;: &quot;^9.0.1&quot;,
      &quot;d3-array&quot;: &quot;^3.0.1&quot;,
      &quot;d3-dsv&quot;: &quot;^3.0.1&quot;,
      &quot;d3-format&quot;: &quot;^3.0.1&quot;,
      &quot;d3-scale&quot;: &quot;^4.0.0&quot;,
      &quot;d3-time-format&quot;: &quot;^4.0.0&quot;,
      &quot;react&quot;: &quot;^17.0.2&quot;,
      &quot;react-dom&quot;: &quot;^17.0.2&quot;,
      &quot;typescript&quot;: &quot;^4.3.5&quot;
    },
    &quot;devDependencies&quot;: {
      &quot;@types/d3-array&quot;: &quot;^3.0.1&quot;,
      &quot;@types/d3-dsv&quot;: &quot;^3.0.0&quot;,
      &quot;@types/d3-format&quot;: &quot;^3.0.1&quot;,
      &quot;@types/d3-scale&quot;: &quot;^4.0.1&quot;,
      &quot;@types/d3-time-format&quot;: &quot;^4.0.0&quot;,
      &quot;@types/react-dom&quot;: &quot;^17.0.9&quot;,
      &quot;html-webpack-plugin&quot;: &quot;^5.3.2&quot;,
      &quot;ts-loader&quot;: &quot;^9.2.3&quot;,
      &quot;webpack&quot;: &quot;^5.44.0&quot;,
      &quot;webpack-cli&quot;: &quot;^4.7.2&quot;,
      &quot;webpack-dev-server&quot;: &quot;^3.11.2&quot;
    }
  }
  
  </code></pre>