Skip to main content
On this page

deno remove

deno remove removes dependencies from your project's configuration file. It is the inverse of deno add.

Basic usage Jump to heading

Remove a package:

>_
deno remove @std/path

Remove multiple packages at once:

>_
deno remove @std/path @std/assert npm:express

Where dependencies are removed from Jump to heading

deno remove will look at both deno.json and package.json (if present) and remove the matching dependency from whichever file it is found in.

Command line usage:
deno remove [OPTIONS] [packages]...

Remove dependencies from the configuration file.

deno remove @std/path

You can remove multiple dependencies at once:

deno remove @std/path @std/assert

Dependency management options Jump to heading

--frozen<BOOLEAN>optional
Jump to heading

Error out if lockfile is out of date.

--lock<FILE>optional
Jump to heading

Check the specified lock file. (If value is not provided, defaults to "./deno.lock").

Disable auto discovery of the lock file.

Options Jump to heading

--lockfile-only
Jump to heading

Install only updating the lockfile.

Last updated on

Did you find what you needed?

Privacy policy