deno uninstall command removes globally installed executable scripts or removes dependencies from a project.
Usage
Global Uninstallation
Remove globally installed executable scripts.Flags
Uninstall a global executable script
Installation root directory (defaults to $HOME/.deno)
Local Uninstallation
Remove dependencies fromdeno.json or package.json.
Flags
Only update the lockfile without removing cached packages
Examples
Uninstall global executables
Uninstall by name
Uninstall with explicit global flag
Uninstall from custom root
Remove project dependencies
Remove a single dependency
Remove multiple dependencies
Remove npm packages
Update lockfile only
Remove from config but don’t delete cached files:What Gets Removed
When uninstalling a global executable, the following files are removed:- The executable script (
.cmdon Windows) - Associated configuration directory (
.{name}/) - Any lockfiles or config files for the installation
- Package is removed from
deno.jsonimports orpackage.jsondependencies - Lockfile is updated
- Cached files remain in the cache directory
See Also
deno install- Install dependencies or executablesdeno cache- Cache dependencies