Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to uninstall or remove a deno script?

Tags:

deno

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 ?

like image 736
Natesh bhat Avatar asked May 20 '20 06:05

Natesh bhat


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.

like image 89
Marcos Casagrande Avatar answered Oct 07 '22 02:10

Marcos Casagrande


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
like image 41
Daanish Rumani Avatar answered Oct 07 '22 02:10

Daanish Rumani