how to uninstall or remove a deno script?

Viewed 1334

I have installed a deno script by running :

deno install https://deno.land/std/examples/welcome.ts

How do I uninstall this script now ?

Is there a subcommand in deno that can uninstall installed scripts ?

2 Answers

Unfortunately deno uninstall was removed

The current solution is to do:

rm $(which file_server)

But an issue regarding uninstall was reopened 6 days ago, so it may come back in the near future.

Remove it manually from $DENO_DIR/bin (defaults to $HOME/.deno/bin)

E.g. on Windows, I ran the following in PowerShell:

PS > rm $HOME/.deno/bin/myscript.cmd
Related