> ## Documentation Index
> Fetch the complete documentation index at: https://bun.manicule.dev/llms.txt
> Use this file to discover all available pages before exploring further.
> For every page in one file, fetch https://bun.manicule.dev/llms-full.txt (large).
> To search and read these docs as tools, connect the MCP server at https://bun.manicule.dev/api/mcp.
> Every agent surface: https://bun.manicule.dev/.well-known/llms-manifest.json

# bun remove (/pm/cli/remove)

<!-- agent-signals: reading_time_min: 2 · est_tokens: 1008 · updated: 2026-08-02 -->
Related: [bun add](/pm/cli/add.md), [bun install](/pm/cli/install.md), [bun link](/pm/cli/link.md), [bun patch](/pm/cli/patch.md), [bun pm](/pm/cli/pm.md), [bun update](/pm/cli/update.md)

> Remove dependencies from your project

## Basic Usage

```bash icon="terminal" title="terminal" terminal
bun remove ts-node
```

***

## CLI Usage

```bash icon="terminal" title="terminal" terminal
bun remove <package>
```

### General Information

<ParamField path="--help" type="boolean">Print this help menu. Alias: <code>-h</code></ParamField>

### Configuration

<ParamField path="--config" type="string">Specify path to config file (<code>bunfig.toml</code>). Alias: <code>-c</code></ParamField>

### Package.json Interaction

<ParamField path="--no-save" type="boolean">Don't update <code>package.json</code> or save a lockfile</ParamField>

<ParamField path="--save" type="boolean" default="true">Save to <code>package.json</code> (true by default)</ParamField>

<ParamField path="--trust" type="boolean">Add to <code>trustedDependencies</code> in the project's <code>package.json</code> and install the package(s)</ParamField>

### Lockfile Behavior

<ParamField path="--yarn" type="boolean">Write a <code>yarn.lock</code> file (yarn v1). Alias: <code>-y</code></ParamField>

<ParamField path="--frozen-lockfile" type="boolean">Disallow changes to lockfile</ParamField>

<ParamField path="--save-text-lockfile" type="boolean">Save a text-based lockfile</ParamField>

<ParamField path="--lockfile-only" type="boolean">Generate a lockfile without installing dependencies</ParamField>

### Dependency Filtering

<ParamField path="--production" type="boolean">Don't install devDependencies. Alias: <code>-p</code></ParamField>

<ParamField path="--omit" type="string">Exclude <code>dev</code>, <code>optional</code>, or <code>peer</code> dependencies from install</ParamField>

### Network & Registry

<ParamField path="--ca" type="string">Provide a Certificate Authority signing certificate</ParamField>

<ParamField path="--cafile" type="string">Same as <code>--ca</code>, but as a file path to the certificate</ParamField>

<ParamField path="--registry" type="string">Use a specific registry by default, overriding <code>.npmrc</code>, <code>bunfig.toml</code> and environment variables</ParamField>

### Execution Control & Validation

<ParamField path="--dry-run" type="boolean">Don't install anything</ParamField>

<ParamField path="--force" type="boolean">Always request the latest versions from the registry & reinstall all dependencies. Alias: <code>-f</code></ParamField>

<ParamField path="--no-verify" type="boolean">Skip verifying integrity of newly downloaded packages</ParamField>

### Output & Logging

<ParamField path="--silent" type="boolean">Don't log anything</ParamField>

<ParamField path="--verbose" type="boolean">Excessively verbose logging</ParamField>

<ParamField path="--no-progress" type="boolean">Disable the progress bar</ParamField>

<ParamField path="--no-summary" type="boolean">Don't print a summary</ParamField>

### Caching

<ParamField path="--cache-dir" type="string">Store & load cached data from a specific directory path</ParamField>

<ParamField path="--no-cache" type="boolean">Ignore manifest cache entirely</ParamField>

### Script Execution

<ParamField path="--ignore-scripts" type="boolean">Skip lifecycle scripts in the project's <code>package.json</code> (dependency scripts are never run)</ParamField>

<ParamField path="--concurrent-scripts" type="number">Maximum number of concurrent jobs for lifecycle scripts (default: 2x CPU cores)</ParamField>

### Scope & Path

<ParamField path="--global" type="boolean">Install globally. Alias: <code>-g</code></ParamField>

<ParamField path="--cwd" type="string">Set a specific cwd</ParamField>

### Advanced & Performance

<ParamField path="--backend" type="string" default="clonefile">Platform-specific optimizations for installing dependencies. Possible values: <code>clonefile</code> (default),{" "}
<code>hardlink</code>, <code>symlink</code>, <code>copyfile</code></ParamField>

<ParamField path="--network-concurrency" type="number" default="48">Maximum number of concurrent network requests (default 48)</ParamField>
