r/PowerShell • • 9d 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

View all comments

1

u/LogMonkey0 9d ago

You don’t, you undo whatever the script did

1

u/BlueberriesTasteNice 9d ago

How do I undo what the script did?

3

u/General__Ferret 9d 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

2

u/RikiWardOG 9d 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 9d 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/LogMonkey0 9d ago

Answers already cover what id reply

1

u/BlackV 9d 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 9d ago edited 9d 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 9d 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 9d ago

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

1

u/BlackV 9d ago

good as gold

1

u/LogMonkey0 9d ago

uv tool uninstall ao3downloader

1

u/LogMonkey0 9d ago

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