npm pkg delete <key...>

Deletes a key from your package.json

Arguments

NameDescription
keyName of the key to delete. You can delete child fields by separating them with a period

Options

NameDescription
-w, --workspace <workspace...>Enable running a command in the context of the configured workspaces of the current project
-ws, --workspacesEnable running a command in the context of all the configured workspaces
-f, --force
  • Dangerous 💥