---
name: "npm-uninstall"
section: "3"
platform: "linux"
package: "npm"
version: "1.4.21+ds-2"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/npm-uninstall/3"
---

# npm-uninstall(3)

uninstall a package programmatically

## NAME

**npm-uninstall** - uninstall a package programmatically

## SYNOPSIS

```
npm.commands.uninstall(packages, callback)
```

## DESCRIPTION

This acts much the same ways as uninstalling on the command-line.

The ´packages´ parameter is an array of strings. Each element in the array is the name of a package to be uninstalled.

Finally, ´callback´ is a function that will be called when all packages have been uninstalled or when an error has been encountered.
