npm_unpublish_version
Unpublish a specific package version from the npm registry. Requires explicit confirmation to prevent accidents, and is irreversible: the version is blocked from re-publishing for 72 hours.
Instructions
Unpublish a specific version of a package. IRREVERSIBLE: once unpublished, the version cannot be re-published and will be blocked for 72 hours. Only works within 72 hours of the original publish for most packages. Requires explicit confirm: true to prevent accidents. Follows the npm CLI flow (mutate packument + delete tarball). For full-package unpublish use npm_unpublish_package. Dist-tag handling: any dist-tag that pointed at the unpublished version is removed. Only latest is auto-reassigned (to the highest remaining stable version). Other tags like next/beta are left unset — reassign them explicitly with npm_dist_tag_set if needed.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"name": "<name>",
"version": "<version>",
"confirm": "<confirm>"
},
"name": "npm_unpublish_version"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Package name | |
| confirm | Yes | Must be literally true. Guards against accidental unpublish. | |
| version | Yes | Specific version to unpublish (e.g. '1.2.3') |