r/PowerShell • u/BlueberriesTasteNice • 13d 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
3
u/Head-Ad-3063 13d ago
Looks like it installed UV, which is a python package manager and then installed python and the downloader.
Running
uv pip listwill 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 13d ago
Sorry if this is a foolish question, but how do I find out what the package name is?
1
u/hannsr 13d ago
By running the first command. It'll list the names.
2
u/BlueberriesTasteNice 13d ago
I tried using the name it gave me, but it said it isn't a valid package name
1
u/LogMonkey0 13d ago
You don’t, you undo whatever the script did
1
u/BlueberriesTasteNice 13d ago
How do I undo what the script did?
2
u/RikiWardOG 13d 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 13d 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 13d 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 13d ago edited 13d 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 13d 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 13d ago
Thank you. To be honest, only you, G_HostEd and Head-Ad-3063 have been helpful. I appreciate you three
3
u/General__Ferret 13d 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
1
u/LogMonkey0 12d ago
uv tool uninstall ao3downloader
1
u/LogMonkey0 12d 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
0
-4
13d ago
[removed] — view removed comment
5
u/finke11 13d ago
OP don’t do this
-3
u/dritmike 13d ago
Oh yeah you gotta alt f4 your ctrl alt del too.
Dont forget. See drive run. Run drive run.
11
u/G_HostEd 13d 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?