how to uninstall or remove a deno script?
Asked Answered
S

2

7

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 ?

Sunshine answered 20/5, 2020 at 6:43 Comment(1)
deno use to have a uninstall command but they removed it, but you can do it with rm ; rm $(which foo)Venesection
P
5

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.

Previous answered 20/5, 2020 at 10:6 Comment(0)
H
3

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
Hyonhyoscine answered 8/6, 2020 at 9:36 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.