r/PowerShell • • 6d ago

Question How do I uninstall a PowerShell script?

Hi, I'm a total newbie with coding/computers. I recently installed something in my PowerShell, it was supposed to run bulk downloads on my bookmarks for a fanfiction website. It didn't work, and I can't figure out how to uninstall it. I'm fairly sure deleting it won't uninstall it. Any help is appreciated.

If the information is needed, here is where I downloaded it from: https://github.com/nianeyna/ao3downloader

0 Upvotes

30 comments sorted by

11

u/G_HostEd 6d ago

I did not downloaded this scrip so I don't know how it works but in general you do not "uninstall" a script. A script runs when is launched and do it's thing and once done it exit.

Curious to know which error you got?

1

u/BlueberriesTasteNice 6d ago

The error for my uninstalling attempts or the error when trying to run the downloader itself?

2

u/G_HostEd 6d ago

The one running the script. A script is not "unistalled" per sé,, it just runs once and exit.

1

u/BlueberriesTasteNice 6d ago

"syntax error: line 1, column 0". I assume that means something went wrong at the start

2

u/G_HostEd 6d ago

To learn:

If you open the script you are running in any IDE (which is a particular text editor that is good at handling and reading code) you will see which command is failing.

Open the file in powershell IDE if you want and paste the command that is executed 😊

1

u/BlueberriesTasteNice 6d ago

I appreciate your willingness to help, but I'd rather remove it than get it to work. Thank you though :)

1

u/G_HostEd 6d ago

Ok, but again, the best way to "remove" what has been installed is to check the code.

A script is not "removable".

3

u/Head-Ad-3063 6d ago

Looks like it installed UV, which is a python package manager and then installed python and the downloader.

Running

uv pip list

will show what it installed, then working through the list running

uv tool uninstall <packagename>

Should remove the things UV installed and then you can uninstall UV from normal remove apps.

1

u/BlueberriesTasteNice 6d ago

Sorry if this is a foolish question, but how do I find out what the package name is?

1

u/hannsr 6d ago

By running the first command. It'll list the names.

2

u/BlueberriesTasteNice 6d ago

I tried using the name it gave me, but it said it isn't a valid package name

1

u/LogMonkey0 6d ago

You don’t, you undo whatever the script did

1

u/BlueberriesTasteNice 6d ago

How do I undo what the script did?

2

u/RikiWardOG 6d ago

By reading the code and understanding it well enough to know what it did. And the takeaway from this is not to run things if you don't know how they work.

1

u/BlueberriesTasteNice 6d ago

I read the code but, because I don't code (as I mentioned in the post above), I can't figure out what it's doing. And yes, it really would be a great solution for this not to have occurred in the first place, isn't it? But at the time when I downloaded it I was in the middle of an apathetic episode and didn't really give a shit about whether things went well or not. Now I do give a shit, and am asking for aid with fixing my mistake. Do you have any other advice? If not, have a good day.

1

u/BlackV 6d ago

to be clear

  • you went to 1 site (github), which sent you to another site (ao3 downloader)
  • that side asked you to download a script and run it
  • that script then downloads another script and runs that
  • that script downloads another tool (astral/python/pypi)
  • then yet another script is run in python
  • that script runs the code from the first site

have a think about whether this sounds like safe behavior or not (ignoring for now it does look benign)

1

u/BlueberriesTasteNice 6d ago edited 6d ago

Yep, I'm well aware of how I shouldn't have done that. Do you have any advice on how to fix my mistake?

Edit: Forgot to mention, I did look it up beforehand and saw positive reviews from others and didn't find any reviews talking about downsides or red flags. That's part of why I downloaded it

1

u/BlackV 6d ago

ya its just something to be aware of, as you say it seems to be vaguely safe

essentially you would delete the scripts and uninstall python, there isn't any major changes more than that

2

u/BlueberriesTasteNice 6d ago

Thank you. To be honest, only you, G_HostEd and Head-Ad-3063 have been helpful. I appreciate you three

1

u/BlackV 6d ago

good as gold

3

u/General__Ferret 6d ago

run in through ai and tell it to create something that reverses the changes it made. before you do read through and understand every line by making it explain the original and the reversal step by step

1

u/LogMonkey0 6d ago

Answers already cover what id reply

1

u/LogMonkey0 6d ago

uv tool uninstall ao3downloader

1

u/LogMonkey0 6d ago

That doesnt cleanup temp downloads it may have done and doesn’t reverse any changes it may have made to your AO3 account

1

u/creenis_blinkum 5d ago

this literally isn't powershell, it's all python

0

u/bobwinters 6d ago

I hate reddit for down voting this post.

-4

u/[deleted] 6d ago

[removed] — view removed comment

5

u/finke11 6d ago

OP don’t do this

-3

u/dritmike 6d ago

Oh yeah you gotta alt f4 your ctrl alt del too.

Dont forget. See drive run. Run drive run.